Problem resolved, It come from the way to add the CA certificate to the keystore. for thoses who are interested : keytool -import -trustcacerts -alias "sensible-name-for-ca" -file CAcert.crt -keystore MYSTORE.jks
from http://shib.kuleuven.be/docs/ssl_commands.shtml Regards, Maxime. 2008/6/12 BRACHET Maxime <[EMAIL PROTECTED]>: > Hi, > > I am trying to code a simple webservice using https. > I use Axis2 deployed in Tomcat 5.5.26. > I configured the https connector, with a Certificate signed by my CA. > When I load the same jks for the server and the client using : > System.setProperty("javax.net.ssl.trustStore", "jks"); > System.setProperty("javax.net.ssl.trustStorePassword", "password"); > It works. > But If I used a jks wich contain only my CA self signed certificate it > doesn't work. > > The certificates I have are the followings : > CA.crt, pem, format , self signed > container.crt, pem format, CA signed > container.key, pem format, CA signed > I don't want to give the container crt and key to my client. > > I someone have useful links with documentation or sample. > > Thanks in advance. > > Regards, > Maxime. >
