ActiveMQ MQTT SSL Problem

2014-05-29 Thread darkrwe
Hi Im trying to integrate my mosquitto client to activemq mqtt broker with SSL. There is a problem at handshaking and cpiher suites here is my client and server logs; ./mosquitto_sub -h localhost -p 8883 -t "SERVICE_TOPIC" --cafile /etc/mosquitto/ca_certificates/ca.crt -d --tls-version tlsv1 Cli

Re: setting up c++ client app using CMS using SSL client certificate auth

2013-11-26 Thread darkrwe
Thank you very much, What I want to do is I want to create an ActiveMQ cluster. This cluster will use mutual authentication.(client and broker) And each activeMQ client should generate own certificate and this certificate should be signed by an private CA authority that I set it up. This new cli

Re: setting up c++ client app using CMS using SSL client certificate auth

2013-11-25 Thread darkrwe
Hi guys; I wonder something about SSL/TLS authentication of ActiveMQ is there any way to authenticate activemq-cpp clients to add these clients public keys to broker truststore automatically? -- View this message in context: http://activemq.2283324.n4.nabble.com/setting-up-c-client-app-using-

Re: setting up c++ client app using CMS using SSL client certificate auth

2013-11-08 Thread darkrwe
Hello Mikmela, i have solved the issue. thank you for reply. My mistake is here i didnot add the -nokeys argument the truststore openssl.exe pkcs12 -in %broker%.p12 -out %client%_ts.pem -nokeys Thank you guys. Have a nice day. -- View this message in context: http://activemq.2283324.n4.nab

Re: setting up c++ client app using CMS using SSL client certificate auth

2013-11-07 Thread darkrwe
I think my problem is about below issue: mikmela wrote > It turned out that the PEM file that was configured as keystore didn't > have a private key. > So, to answer own question > decaf::lang::System::setProperty( "decaf.net.ssl.trustStore", > pathToClientTrustStoreInPemFormat); > decaf::lang

Re: setting up c++ client app using CMS using SSL client certificate auth

2013-11-07 Thread darkrwe
I export the below environment parameter. export ACTIVEMQ_OPTS="-Djava.net.debug=ssl" But i have not seen any ssl handshake between client and broker in the activeMQBase/data/activemq.log file. is there another log file that i trace the result? Thanks. -- View this message in context: http

Re: setting up c++ client app using CMS using SSL client certificate auth

2013-11-07 Thread darkrwe
Hi Tim, thank you for answer. I installed oracle JDK7 and now i don't get below problems. Now I just want to summarize what i do.. Because my pem file is problematic in client side. Maybe another configuration i could miss. > I'm getting below error on the client side (ubuntu 13.04 -same machine

Re: setting up c++ client app using CMS using SSL client certificate auth

2013-11-07 Thread darkrwe
Hello guys, I have same problem too. I'm getting below error on the client side (ubuntu 13.04 -same machine with the client) Error occurred while accessing an OpenSSL library method: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error I'm also getting below error from b

Pending Message ?

2013-10-06 Thread darkrwe
Hello guys ! I'm using activeMQ cms c++ libraries and ActiveMQ 5.8.0 as a broker. Summary of what i'm doing is: I have created an connection in main process in my project. I passed the this connection to a thread and also created a fork process from this thread. But in this child process when i j

Re: Pending Message ?

2013-10-06 Thread darkrwe
I think the problem is about *forking* and all address space of parent process copied to fork process: But the interesting thing is that i just send the pointer of my connection and session to thread and this child process just used main process's connection and session and its consumer/producers