On Fri, 2012-05-11 at 16:12 -0300, Daniel Duarte Figueiredo wrote: 
> I had seen those docs 
> (http://activemq.apache.org/cms/how-do-i-use-the-ssl-transport.html) but the 
> problem is that I don't know how to generate the certificate:
> 
>     decaf::lang::System::setProperty( "decaf.net.ssl.trustStore", "<path to 
> Certificate file>/certificate.pem" );
> 
> I tried to set this property with the broker_cert I generated with the java 
> tutorial (http://activemq.apache.org/how-do-i-use-ssl.html), 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

The XCA GUI is a great tool for creating your own root CA and then
creating a client and broker cert signed by that CA.  

> 
> -----Mensagem original-----
> De: Timothy Bish [mailto:tabish...@gmail.com] 
> Enviada em: sexta-feira, 11 de maio de 2012 15:02
> Para: users@activemq.apache.org
> 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:
> > 
> >  <http://activemq.apache.org/how-do-i-use-ssl.html>
> > http://activemq.apache.org/how-do-i-use-ssl.html
> > 
> > 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  <http://activemq.apache.org/cms/> 
> > http://activemq.apache.org/cms/
> > 
> > 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 ( 
> > <http://activemq.apache.org/how-do-i-use-ssl.html>
> > http://activemq.apache.org/how-do-i-use-ssl.html) 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:
> http://activemq.apache.org/cms/how-do-i-use-the-ssl-transport.html 
> 
> --
> Tim Bish
> Sr Software Engineer | FuseSource Corp
> tim.b...@fusesource.com | www.fusesource.com
> skype: tabish121 | twitter: @tabish121
> blog: http://timbish.blogspot.com/
> 

-- 
Tim Bish
Sr Software Engineer | FuseSource Corp
tim.b...@fusesource.com | www.fusesource.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/

Reply via email to