Question about using using tcps

[email protected]
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Hi,

I am using tcps, I follow the instructions found on the openJMS web site, I
first create the client and server keystores, then export the keys and
import them (server's into client and viceversa).

When I run my client I have to use 

-Djavax.net.ssl.trustStore=C:\openJMS\openjms-0.7.6.1\config\openjms.keystor
e
-Djavax.net.ssl.keyStore=C:\openJMS\openjms-0.7.6.1\config\openjms.keystore
-D=javax.net.ssl.keyStoreType=jks
-Djavax.net.ssl.keyStorePassword=password

instead of client.keystore, if I use client.keystore it doesn't work. As a
matter of fact I deleted the client keystore and public key and it still
works using the server's keystore, it seems the client authenticates just
via the password provided by

-Djavax.net.ssl.keyStorePassword=password

Could someone explain how it is supposed to work? Right now my server and my
client are using exactly the same file openjms.keystore, shouldn't the
client be using its keystore with the imported server's public key? And why
does it work?

Thanks,

A.

-----------------------------------------------------
Hans Larsson
PPM PremiePensionsmyndigheten
Utvecklingsenheten
Box 1605
111 86 Stockholm
Tel växel : 08 406 50 00
Tel direkt: 08 406 52 73
Tel mobil: 0733 406 103
[email protected] <mailto:[email protected]> 
www.ppm.nu <http://www.ppm.nu> 
-----------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.