我正在尝试对Active MQ创建的JMX连接器使用SSL,但没有成功。我能够使用SSL与JVM平台JMX连接器一起工作,但需要存储密钥库和信任库密码明文,这对我们的项目来说是不可行的。活动MQ JMX SSL
使用说明书here,我成立了managementContext在activemq.xml中如下:
<managementContext>
<managementContext createConnector="true">
<property xmlns="http://www.springframework.org/schema/beans" name="environment">
<map xmlns="http://www.springframework.org/schema/beans">
<entry xmlns="http://www.springframework.org/schema/beans"
key="javax.net.ssl.keyStore"
value="${activemq.base}/conf/keystore.jks"/>
<entry xmlns="http://www.springframework.org/schema/beans"
key="javax.net.ssl.keyStorePassword"
value="${keystore.password}"/>
<entry xmlns="http://www.springframework.org/schema/beans"
key="javax.net.ssl.trustStore"
value="${activemq.base}/conf/truststore.jks"/>
<entry xmlns="http://www.springframework.org/schema/beans"
key="javax.net.ssl.trustStorePassword"
value="${truststore.password}"/>
</map>
</property>
</managementContext>
</managementContext>
本节似乎在连接器启动时被完全忽略。我可以连接没有凭据。我也尝试使用用户名和密码身份验证,而不是用于JMX的SSL,如here,并且工作正常。
有没有人见过这个?有任何想法吗?谢谢!
嗨,我面临同样的问题。你有没有找到解决办法? – Satyaprakash