Skip to main content

Java WS with mutual ssl authentication

No replies
celsoale
Offline
Joined: 2012-07-09
Points: 0

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 ("javax.net.ssl.keyStore", "keystore.jks");

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

Any suggestions?