users@glassfish.java.net

Re: How to Config Servlet with SSL on GlassFish

From: <glassfish_at_javadesktop.org>
Date: Fri, 12 Mar 2010 00:33:42 PST

How are you accessing the page. If using a browser, you need to ask it to accept the server's self-signed (untrusted) certificate.

If you are using a java client, you need to specify the truststore and truststorepassword as follows.

# java -Djavax.net.ssl.trustStore=<install-dir>/glassfish/domains/domain1/config/cacerts.jks -Djavax.net.ssl.trustStorePassword=changeit myclient

Where myclient is the client class name and the truststore location and password are the default values.
[Message sent by forum member 'nasradu8' (Sudarsan.Sridhar_at_sun.com)]

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