activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: actviemq client trustStore settings
Date Thu, 06 May 2010 13:18:41 GMT
For the client side there default is to use the system properties. You could
override (register) the transport factory used by client connections such
that you can provide explicit configuration.

For an example in context see the createbroker() method of the unit test
http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/SslBrokerServiceTest.java?view=markup

        // for client side
        SslTransportFactory sslFactory = new SslTransportFactory();
        SslContext ctx = new SslContext(km, tm, null);
        SslContext.setCurrentSslContext(ctx);
        TransportFactory.registerTransportFactory("ssl", sslFactory);

On 6 May 2010 13:26, codescoder <bukka.ramu@gmail.com> wrote:

>
> hi all,
> i am able to connect one of my client to activemq using ssl.
> in client program i am mentioning following for key and trust settings.
>
> systemProps.put("javax.net.ssl.trustStore","C:/test-deploy/client.ts");
> systemProps.put("javax.net.ssl.keyStore","C:/test-deploy/client.ks");
> systemProps.put("javax.net.ssl.keyStorePassword","abcxyz");
>
> actually i dont want to do settings like this.
> is there any option to set client.ts and client.ks settings in some where
> or
> any other way.
>
> in broker side for broker.ts and broker.ks i am settings SSL_OPTS .
> can you please suggest ant other to set the things in client side.
> thank you in advance.
>
>
>
> --
> View this message in context:
> http://old.nabble.com/actviemq-client-trustStore-settings-tp28472880p28472880.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com

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