activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oscar Pernas <os...@pernas.es>
Subject ACTIVEMQ-CPP. Using ssl
Date Wed, 01 Dec 2010 13:02:18 GMT
Hi all,

Im trying to use ssl with activemq-cpp. Im trying to give you a manual of
what I've do, and please correct me if something is wrong (something is
wrong because is not working)

Generatet the keystore for the broker

 keytool -genkey -alias broker -keyalg RSA -keystore broker.ks

Export the cert of the broker

keytool -export -alias broker -keystore broker.ks -file broker.cert

Converting into pem format:

openssl x509 -inform der -in broker.cert -out broker.pem


Broker started adding

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

to activemq.xml

I've defined:

export SSL_OPTS="-Djavax.net.ssl.keyStore=/home/opernas/broker.ks
-Djavax.net.ssl.keyStorePassword=password"

And started broker without error.



In my application i've set the line:

decaf::lang::System::setProperty( "decaf.net.ssl.trustStore",
getCertificate() );



But when Im starting the app, the the connection cant be stablished, and its
freezes waiting to connect. Whay I'm doing wrong?



regards



-- 
Óscar Pernas Plaza.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message