users@glassfish.java.net

Re: web service and web service client over ssl (cert.CertificateException)

From: <glassfish_at_javadesktop.org>
Date: Tue, 17 Feb 2009 02:49:49 PST

This is a common problem.

1. The glassfish default server cert is a self-signed certificate and so browsers would not trust it and will pop-up things like this :

----------------------
"unable to verify the identity of home-f0045512354 as a trusted site"
issued to: common name[cn]: home-f045512354
issued by: common name[cn]: home-f045512354 etc.
---------------------

and you would have to accept it

In step 7 when you try the invocation you specified localhost in the https URL. This is again a problem and the solution is documented here :

https://jax-ws.dev.java.net/guide/Security_Mechanisms.html#Transport_Security__SSL__Workaround
https://jax-ws.dev.java.net/guide/HTTPS_HostnameVerifier.html
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]

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