我正在嘗試對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