7.6. Setting Security Context for the Openwire/SSL Protocol

download PDF


Apart from configuration using JSSE system properties, the Openwire/SSL protocol (with schema, ssl:) also supports an option to set its SSL security context using the broker configuration file.
The methods for setting the security context described in this section are available exclusively for the Openwire/SSL protocol. These features are not supported by the HTTPS protocol.

Setting security context in the broker configuration file

To configure the Openwire/SSL security context in the broker configuration file, edit the attributes in the sslContext element. For example, the default broker configuration file, etc/activemq.xml, includes the following entry:
<beans ...>
    <broker ...>
            <sslContext keyStore="file:${activemq.base}/conf/broker.ks"
Where the activemq.base property is defined in the activemq[.bat|.sh] script. You can specify any of the following sslContext attributes:
  • keyStore—equivalent to setting
  • keyStorePassword—equivalent to setting
  • keyStoreType—equivalent to setting
  • keyStoreAlgorithm—defaults to JKS.
  • trustStore—equivalent to setting
  • trustStorePassword—equivalent to setting
  • trustStoreType—equivalent to setting
Red Hat logoGithubRedditYoutubeTwitter


Try, buy, & sell


About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.