I am trying to configure an integrated ActiveMQ broker that supports SSL.
Im continuously getting the same msg error:
ActiveMQ Transport Server: ssl:
A search on this issue indicates a possible malfunction in creating a keystore and trust store.
I tried to create a keystore and trust store using these guides without success. http://docs.oracle.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html#CreateKeystore
http://activemq.apache.org/how-do-i-use-ssl.html
I am trying to set this in grails and im by defining embeddedActiveMq inside conf / spring / resources.groovy as shown below:
SpringSslContext sslContext = new SpringSslContext() FileSystemResource keyStoreResource = new FileSystemResource("/path/to/keyStore") FileSystemResource trustStoreResource = new FileSystemResource("/path/to/trustStore") sslContext.setKeyStore(keyStoreResource) sslContext.setKeyStorePassword("password") sslContext.setTrustStore(trustStoreResource) sslContext.setTrustStorePassword("trustword") SslBrokerService broker = new SslBrokerService() broker.setBrokerName("broker") broker.setPersistent(true) broker.setUseJmx(true) broker.setSslContext(sslContext) TransportConnector connector = new TransportConnector connector.setUri(new("ssl://localhost:61613")) broker.addConnector(connector) broker.start()
I cannot get any other debugging information using
System.setProperty("javax.net.debug", "ssl,handshake,data,trustmanager,keymanager")
May there be a problem with java still trying to use certificate files in jre6 / lib / security?
Is there anything specific you need to do to force a keystore, etc. work correctly?
source share