activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Duarte Figueiredo" <>
Subject RES: ActiveMQ-CPP with SSL
Date Fri, 11 May 2012 19:12:02 GMT
I had seen those docs (
but the problem is that I don't know how to generate the certificate:

    decaf::lang::System::setProperty( "", "<path to Certificate
file>/certificate.pem" );

I tried to set this property with the broker_cert I generated with the java tutorial (,
and I tried to create a PEM file from the broker_cert with the command:

    openssl x509 -inform DER -outform PEM -in broker_cert -out cert.pem

I am trying to find a simple way to create a certificate, for test purposes.

Daniel Duarte Figueiredo

-----Mensagem original-----
De: Timothy Bish [] 
Enviada em: sexta-feira, 11 de maio de 2012 15:02
Assunto: Re: ActiveMQ-CPP with SSL

On Fri, 2012-05-11 at 14:50 -0300, Daniel Duarte Figueiredo wrote: 
> (Sorry if this message gets sent twice, but I got a "Mail delivery failed"
> in the first attempt)
> Hello everyone,
> I've seen it was discussed before, but I didn't find a solution that 
> worked for me. I started working with ActiveMQ a few weeks ago, and my 
> application is written in Java. I needed to establish connection with 
> the ActiveMQ broker using SSL, and I was able to achieve this using this tutorial:
>  <>
> We will have C++ clients communicating with our server, and I need to 
> submit a proof of concept to show that it is possible to a program 
> implemented in
> C++ to communicate with the ActiveMQ broker using SSL. For this 
> C++ purpose, I
> downloaded the ActiveMQ-CPP from  <> 
> After building it, I tried running the example. It worked with the TCP 
> connection. Can anyone help me with the SSL connection?
> I tried using the same keystore, certificate and truststore generated 
> with the tutorial I used for the java client ( 
> <>
> but it didn't work. 
> I tried to convert my certificate to a .pem file but it also didn't 
> work. Has anyone ever achieved this? Is there a "how to" similar to 
> that for java? I think I will need to create a different kind of 
> keystore and certificate for the broker, and set the properties that point the location
of these files.
> Daniel Duarte Figueiredo

See the docs on the ActiveMQ-CPP site: 

Tim Bish
Sr Software Engineer | FuseSource Corp |
skype: tabish121 | twitter: @tabish121

View raw message