SSL muthual authentication
Hi all!
I'm writing a web service client application using JWSDP. The SOAP message is sent via HTTPS channel. In SSL handshake, the muthual authentication is required. In order to solve this I attached to my client:
System.setProperty("javax.net.ssl.keyStore","key.pfx" );
System.setProperty("javax.net.ssl.keyStorePassword","pass" );
System.setProperty("javax.net.ssl.keyStoreType","pkcs12" );
System.setProperty("javax.net.ssl.trustStore","truststore.ks" );
System.setProperty("javax.net.ssl.trustStorePassword","pass2" );
Provider provider =new com.sun.net.ssl.internal.ssl.Provider();
Security.addProvider( provider );
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol" );
I tried to connect to the server with settings above with a simple HTTP client, using HttpURLConnection. It was successfull, and when I turn "javax.net.debug" property to "all", I see in my log: "Found trusted certificate:...".
When I try to connect to the server with ws-client based on JWSDP, I do not see "Found trusted certificate:..." in my logs, and muthual authentication is not successfull.
I tried the system property settings above with an axis-based ws-client also, and it worked.
Do I have to configure any other properties using JWSDP in order to turn muthual authentication on?
Please help!
waczack

