activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serge Merzliakov <>
Subject Re: Example of connecting via SSL to ActiveMQ?
Date Fri, 29 May 2009 03:16:23 GMT

  I have got client and server side authentication to work. My code is a
customized log4j appender but The AuditAppender class connect method shows
how I did. I followed the instructions on same page u did.

Here is what all my files do:
1) - Custom log4j appender which make JMS client
connection (also see setSystemSSLParameters() method)
2)  -contains client side key store and trust store setup.
I used the the .ks and .ts from 5.2 install (chnaged nothing). Please note I
have encrypted the passwords in the file - specific to my needs.

3) activemq.xml - configuration which is locked down to SSL only (and
needClientAuth=true), encrypts key store passwords activemq.xml 

If you have any questions, let me know.


Grant Birchmeier wrote:
> I'm going nuts trying to get my client to connect to ActiveMQ via SSL.
> I've referred to the instructions at
>, but the "Starting the
> Client" section isn't very verbose.  Why doesn't it talk about any Java
> code or ActiveMQ API classes?
> Do I need to create a SSLContext?  What's the difference between
> javax.ssl.SSLContext and (the latter
> of which has an almost completely empty javadoc)?
> I think I'm pretty close now, but I'm stuck on a "No X509TrustManager
> implementation available" exception.  The JSSE ref guide says that there's
> a default X509 implementation, but apparently I'm not invoking it right.
> I have so many questions that I'm sure could be answered by seeing a
> simple example program, but I can't seem to find one.  A simple
> sender/receiver example would be invaluable.  Is there none?
> Any help would be greatly appreciated.  I'm going crazy here.
> -Grant

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message