ActiveMQSslConnectionFactory

ActiveMQSslConnectionFactory

我无法在以下位置配置org.apache.activemq.ActiveMQSslConnectionFactory
HermesJMS,最终说出一个错误

Caused by: java.io.IOException: Could not load resource: D:\ActiveMQCertificates\broker.ks
    at org.apache.activemq.ActiveMQSslConnectionFactory.getUrlOrResourceAsStream(ActiveMQSslConnectionFactory.java:186)
    at org.apache.activemq.ActiveMQSslConnectionFactory.loadClientCredential(ActiveMQSslConnectionFactory.java:158)
    at org.apache.activemq.ActiveMQSslConnectionFactory.createKeyManager(ActiveMQSslConnectionFactory.java:142)
    at org.apache.activemq.ActiveMQSslConnectionFactory.createTransport(ActiveMQSslConnectionFactory.java:105)
    ... 51 more


我在D:\ ActiveMQCertificates \ broker.ks中有密钥库文件,但是Hermes无法加载资源。

Hermes中的配置是

brokerURL:ssl:// localhost:61616
keyStore:D:\ ActiveMQCertificates \ broker.ks
密钥库密码:xxxxx

如何在Hermes中指定密钥库路径?
帮帮我

谢谢,
马赫什

最佳答案

根据link,尝试将其添加到JAVA_OPTS中

java -Djavax.net.ssl.trustStore= -Djavax.net.ssl.trustStorePassword=xxxxxxxx

09-11 18:53