Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
    <amq:sslContext>
        <amq:sslContext keyStore="file://${activemq.base}/data/broker.ks" keyStorePassword="123456" trustStore="file://${activemq.base}/data/broker.ks" trustStorePassword="123456"/>
    </amq:sslContext>

By default java programs assume the keystore is located in ~/.keystore. This can be overridden by setting the relevant system properties either on the command line (using -Dproperty=value) or in code using e.g.:

Code Block

    System.setProperty("javax.net.ssl.keyStore",keyStore);
    System.setProperty("javax.net.ssl.keyStorePassword","123456");
    System.setProperty("javax.net.ssl.trustStore",keyStore);
    System.setProperty("javax.net.ssl.trustStorePassword","123456");	
    //System.setProperty("javax.net.debug", "ssl");

The "javax.net.debug" property can be used to enable verbose debug output from the SSL handshake and authentication stages.

Note that updating the key- or trust stores requires a server restart as they are read on start-up.

...