Skip to main content

Java WS with mutual ssl authentication

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2012-07-09

Hi guys,

I need a solution to authenticate clients (several in the same JVM) on the same server using SSL. These clients will consume Web services from the server and the server uses client certificates to authorize transactions.

So I can not use:
HttpsURLConnection.setDefaultSSLSocketFactory (sslContext.getSocketFactory());

And even less:
System.setProperty ("", "keystore.jks");

The two solutions above do not work in my scenario with multiple certificates for many clients.

Any suggestions?