You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Alice (JIRA)" <ji...@apache.org> on 2017/01/06 09:14:58 UTC
[jira] [Updated] (AMQ-6554) ActiveMQ SSL Error using C client
[ https://issues.apache.org/jira/browse/AMQ-6554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alice updated AMQ-6554:
-----------------------
Description:
I am trying to connect a C client with activeMQ using ssl.For this I created certificates using the following link
https://github.com/rethab/php-stomp-cert-example/blob/master/README.md
..I confiugured activeMQ with transport connectors as:
<transportConnector name="ssl" uri="mqtt+ssl://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
But when I connect a C client to activeMQ I get connect failed return code -1 error.
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);
}
> ActiveMQ SSL Error using C client
> ---------------------------------
>
> Key: AMQ-6554
> URL: https://issues.apache.org/jira/browse/AMQ-6554
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker, CMS (C++ client), MQTT, security
> Affects Versions: 5.14.1
> Reporter: Alice
>
> I am trying to connect a C client with activeMQ using ssl.For this I created certificates using the following link
> https://github.com/rethab/php-stomp-cert-example/blob/master/README.md
> ..I confiugured activeMQ with transport connectors as:
> <transportConnector name="ssl" uri="mqtt+ssl://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
> But when I connect a C client to activeMQ I get connect failed return code -1 error.
> 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);
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)