org.apache.activemq.ActiveMQSslConnectionFactory is definitly expecting ssl not
https, so this is definitly not correct configuration.
The problem is that I am not able to find how to configure ActiveMQ in Camel
with https protocol?!
you should try using standard connection factory over ssl one for https transport. Also, note that http(s) transport requires some additional dependencies, as show here
You'll need activemq-optional.jar (or activemq-http.jar starting with 5.8.0) and xstream and http-client in your classpath.
Hope this helps.
Edited by: dejanb on Feb 20, 2013 6:54 PM
I did manage to connect to my Queue using sample from ActiveMQ book using Https.
As bundle is not Console application ( -Djavax.net.ssl.keyStore= ......)
I need to set System properties in Blueprint:
I have tried to use MethodInvokingFactoryBean but Blueprint stops waiting on namespace:
As well if this works I am not sure if I could use only /conf/mybroker.ts instead of full
How can I set javax.net.ssl.* in Blueprint?
Edited by: milanmilas on Feb 22, 2013 12:36 PM
(must use localhost or server name, depending how you define URL in Caml, names must match)
keytool -genkey -alias localhost -keyalg RSA -keystore server.ks
keytool -export -alias localhost -keystore server.ks -file server_cert
keytool -import -alias -keystore localhost client.ts -file server_cert
<sslContext keyStore="file:$/conf/server1.ks" keyStorePassword="password" trustStore="file:$/conf/mybroker.ts"
Is this correct way or is there a better way of setting trust and keystore from Camel?
Edited by: milanmilas on Feb 22, 2013 5:23 PM