activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arjun13 <>
Subject How to enable SSL over ActiveMQ using C client
Date Fri, 06 Jan 2017 09:27:48 GMT
I am trying to connect a C client with activeMQ using ssl.For this I created
certificates using the following link
Also I confiugured activeMQ with transport connectors as:
<transportConnector name="ssl"

The portion of C client uisng SSL is as follows:
MQTTClient_SSLOptions ssl_opts = MQTTClient_SSLOptions_initializer;
ssl_opts.enableServerCertAuth = 0;
conn_opts.ssl = &ssl_opts;
conn_opts.ssl->keyStore = "/home/user/certs/client-chain.pem";
conn_opts.ssl->privateKeyPassword = "password";
conn_opts.ssl->enabledCipherSuites = "DEFAULT";
MQTTClient_setCallbacks(client, NULL, connlost, msgarrvd, delivered);
if ((rc = MQTTClient_connect(client, &conn_opts)) != MQTTCLIENT_SUCCESS)
{ printf("%d",rc); }
But when I connect a C client to activeMQ I get connect failed return code
-1 error...Kindly help me to fix this issue

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

View raw message