Skip to main content

Glassfish web service client using mutual authentication (client certificate)

No replies
Joined: 2012-01-25
Points: 0

I need to create a client to consume a web service protected by mutual authentication. The client will run inside of Glassfish

I how can I provide a client certifcate (from a CA) when communicating with the web service? The web service is provided by another company.

I created a Java SE client that works by setting the System properties:

System.setProperty("", "D:/mykeystore.jks");
System.setProperty("", "examplepassword");

When I my client code inside Glassfish, setting the system properties are ignored.