activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manua <>
Subject Unable to connect to broker over ssl
Date Mon, 14 Nov 2011 22:18:27 GMT

I have setup the ssl in the broker as follows,

            <sslContext keyStore="file:${activemq.base}/conf/broker.ks" 

And specified he transport connector as, 

<transportConnector name="ssl" uri="ssl://"/>

With this configuraton broker starts, but when I connect to it using a java
consumer as,

ActiveMQConnectionFactory factory = 
                new ActiveMQConnectionFactory("ssl://<server-ip>:443");

I got the error, 

Could not connect to broker URL: ssl://<server-ip>:443. Reason: PKIX path building failed: unable to find
valid certification path to requested target

And in the activemq logs, it says,

ERROR | Could not accept connection :
Received fatal alert: certificate_unknown

I have followed the steps specified in, to generate and register
the certificate.
Also, set the

But still getting the same error.

How can I set the,

And do I need to do any thing different at the client side, while connecting
instead of changing url form tcp to ssl.

Let me know your inputs.


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message