有没有一种方法可以通过在Mule 2中只指定url来连接https服务器?
当我运行此命令时:有没有一种方法可以通过在Mule 2中只指定url来连接https服务器?,https,mule,Https,Mule,当我运行此命令时: 我明白了: ... ERROR 2011-07-05 13:06:28,826 [main] org.mule.MuleServer: ******************************************************************************** Message : Failed to invoke lifecycle phase "initialise" on object: HttpsCo
我明白了:
...
ERROR 2011-07-05 13:06:28,826 [main] org.mule.MuleServer:
********************************************************************************
Message : Failed to invoke lifecycle phase "initialise" on object: HttpsConnector{this=1efe475, started=false, initialised=false, name='connector.https.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=false, supportedProtocols=[https], serviceOverrides=null}
Type : org.mule.api.lifecycle.LifecycleException
Code : MULE_ERROR-70228
JavaDoc : http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/lifecycle/LifecycleException.html
********************************************************************************
Exception stack is:
1. The Key password cannot be null (java.lang.IllegalArgumentException)
org.mule.api.security.tls.TlsConfiguration:290 (null)
2. Failed to invoke lifecycle phase "initialise" on object: HttpsConnector{this=1efe475, started=false, initialised=false, name='connector.https.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=false, supportedProtocols=[https], serviceOverrides=null} (org.mule.api.lifecycle.LifecycleException)
org.mule.lifecycle.DefaultLifecyclePhase:277 (http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/lifecycle/LifecycleException.html)
********************************************************************************
...
您需要使用客户端密钥库显式配置HTTPS连接器,以便进行出站HTTPS调用。对此进行了解释(阅读本文件需要免费注册) 本质上,它归结为:
<https:connector name="httpConnector">
<https:tls-client path="clientKeystore" storePassword="mulepassword"/>
</https:connector>
是路径
证书的位置(从https://localhost
)?如果是这样,我如何知道storePassword
?否,路径指向必须使用标准密钥库工具创建的Java密钥库。这样做时,您将获取一个密码。