activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RVlad <vladislavs.rutkovs...@dati.lv>
Subject Re: Cannot get SSL client-to-broker connection
Date Wed, 29 Nov 2006 09:40:00 GMT

Hi Adrian Co,
Thanks for right direction!

Yes, i've defined a global environment variable
--------------console---------------
c:\ActiveMQ>set
ACTIVEMQ_OPTS=-Djavax.net.ssl.keyStore=c:\activemq\broker.ks
-Djavax.net.ssl.keyStorePassword=password
ALLUSERSPROFILE=C:\Documents and Settings\All Users
ANT_HOME=c:\Program Files\Apache Software Foundation\ant-1.6.5
... etc
---------------------------------------
but there was a little my mistake... I just mixed up "broker.ks" and
"client.ks" in javax.net.ssl.keyStore option...

Now all works fine except an old lovely good known error
----------console--------------
Exception in thread "Thread-1" java.lang.RuntimeException:
javax.jms.JMSException: Socket is closed
	at corp.sap.pal.le.amqtest.jms.client.JMSManager.close(JMSManager.java:73)
	at corp.sap.pal.le.amqtest.jms.client.Sender.run(Sender.java:90)
	at java.lang.Thread.run(Unknown Source)
Caused by: javax.jms.JMSException: Socket is closed
	at ...
...
---------------------------------
at connection closing.


But what about of second question:
> And what to do to establish SSL connection between two brokers?

Is there enough just to add -Djavax.net.ssl.trustStore=path/to/client.ts to
the same variable ACTIVEMQ_OPTS ?

Thanks again!

Best regards,
Vlad


Adrian Co wrote:
> 
> Did you do the export ACTIVEMQ_OPTS thingy?
> 
> I wonder if the version you're using does not support this yet.. Try 
> manually adding the properties inside the activemq startup script (e.g. 
> activemq.bat)
> 
> RVlad wrote:
>> Hi guru,
>> ....
>> ....
>> Thanks in adwance.
>> And excuse my poor english.
>>
>> Vlad
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Cannot-get-SSL-client-to-broker-connection-tf2719214.html#a7596178
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message