users@glassfish.java.net

Glassfish web service client using mutual authentication (client certificate)

From: <forums_at_java.net>
Date: Wed, 1 Feb 2012 15:20:55 -0600 (CST)

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("javax.net.ssl.keyStore",
"D:/mykeystore.jks");
        System.setProperty("javax.net.ssl.keyStorePassword",
"examplepassword");

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

 

 


--
[Message sent by forum member 'tntrujilo']
View Post: http://forums.java.net/node/883211