Allow SSL client and non-ssl client to AMQ at the same time.

Solution Verified - Updated -

Issue

  • We would like to enable the SSL connection, allow client to connect with AMQ server with either TCP or SSL at the same time. However when I followed your document toenable the SSL transport , I found that the client can only use the ssl client, the normal tcp option such as tcp://localhost:61616 is not longer available, just wonder how could I configure the ActiveMQ server to allow the both option?

  • In the activemq.xml, I have used the following lines for ssl:

<sslContext>
            <sslContext
                keyStore="${karaf.base}/etc/broker.ks"
                keyStorePassword="password"
                trustStore="${karaf.base}/etc/broker.ts"
                trustStorePassword="password"
                />
        </sslContext>

        <transportConnectors>
         <transportConnector name="nio+ssl" uri="nio+ssl://0.0.0.0:61617?transport.enabledProtocols=TLSv1,TLSv1.1,TLSv1.2&amp;maximumConnections=1000"/>
</transportConnectors>

Environment

  • Red Hat AMQ
    • 6.3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content