Grant,
  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) AuditAppender.java - Custom log4j appender which make JMS client
connection (also see setSystemSSLParameters() method)
2) log4j.properties  -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

http://www.nabble.com/file/p23773652/log4j.properties log4j.properties 
http://www.nabble.com/file/p23773652/AuditAppender.java AuditAppender.java 
http://www.nabble.com/file/p23773652/activemq.xml activemq.xml 

If you have any questions, let me know.

Serge


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
> http://activemq.apache.org/how-do-i-use-ssl.html, 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 org.apache.activemq.broker.SslContext (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: 
http://www.nabble.com/Example-of-connecting-via-SSL-to-ActiveMQ--tp23735309p23773652.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to