如何使用Mule 2连接到https服务器

如何使用Mule 2连接到https服务器,https,mule,Https,Mule,我使用此命令将.pem文件转换为.jksone(): 这是Mule文件: 现在,我明白了: ERROR 2011-07-08 12:06:51,210 [main] org.mule.MuleServer: ******************************************************************************** Message : Initialisation Failure: Error creating

我使用此命令将
.pem
文件转换为
.jks
one():

这是Mule文件:


现在,我明白了:

ERROR 2011-07-08 12:06:51,210 [main] org.mule.MuleServer: 
********************************************************************************
Message               : Initialisation Failure: Error creating bean with name 'SslConnector': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: The Key password cannot be null
Type                  : org.mule.api.lifecycle.InitialisationException
Code                  : MULE_ERROR-72085
JavaDoc               : http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/lifecycle/InitialisationException.html
Object                : org.mule.config.spring.SpringRegistry@160bf50
********************************************************************************
Exception stack is:
1. The Key password cannot be null (java.lang.IllegalArgumentException)
  org.mule.api.security.tls.TlsConfiguration:290 (null)
2. Error creating bean with name 'SslConnector': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: The Key password cannot be null (org.springframework.beans.factory.BeanCreationException)
  org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory:1338 (null)
3. Initialisation Failure: Error creating bean with name 'SslConnector': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: The Key password cannot be null (org.mule.api.lifecycle.InitialisationException)
  org.mule.registry.AbstractRegistry:76 (http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/lifecycle/InitialisationException.html)

侧注:这将扩展到

在尝试配置之后,我认为还需要tls密钥存储元素

以下HTTPS配置允许“ConnectToHTTPS”成功命中HTTPS出站目标:

<https:connector name="SslConnector" keepSendSocketOpen="true">
    <https:tls-client path="${mule.home}/cert.jks"
                      storePassword="passwd"/>
    <https:tls-key-store path="${mule.home}/cert.jks"
                         keyPassword="passwd"
                         storePassword="passwd" />
</https:connector>


我无法找到请求目标的有效认证路径。。这是否意味着我必须访问私有证书?不,我尝试使用从我通过HTTPS浏览的站点检索到的公共证书。您是否必须将其从
.pem
格式转换?如果是,您使用了什么命令?我直接导入了使用keytool从网站保存的证书,没有转换。我将其导出为base64编码的单个证书。
<https:connector name="SslConnector" keepSendSocketOpen="true">
    <https:tls-client path="${mule.home}/cert.jks"
                      storePassword="passwd"/>
    <https:tls-key-store path="${mule.home}/cert.jks"
                         keyPassword="passwd"
                         storePassword="passwd" />
</https:connector>