users@glassfish.java.net

Re: SSL connection client certificate?

From: <glassfish_at_javadesktop.org>
Date: Thu, 28 Feb 2008 03:20:48 PST

I guess the error :

>com.sun.xml.ws.client.ClientTransportException: HTTP transport error: >javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path >building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find >valid certification path to requested target.

will come if you just comment the first one :
System.setProperty("javax.net.ssl.trustStore", "<client.truststore.location>");

Can you confirm this ?.

Now coming to the error from .Net WS : "The security token could not be authenticated or authorized"

From what i could understand so far, this may happen if you are using SSL Mutual Authentication and the Service Does not Trust the Client Certificate. Make sure the CA cert of the issuer of client certificate is not trusted by the .Net Service.


Thanks
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]

http://forums.java.net/jive/thread.jspa?messageID=261374