users@glassfish.java.net

Re: SSL support

From: V B Kumar Jayanti <Vbkumar.Jayanti_at_Sun.COM>
Date: Thu, 24 Jul 2008 11:36:41 +0530

Patrick Ward wrote:

> Hello,
> I looked in the SJSAS developer and deployer guides as well as the
> GlassFish documentation, and I must have missed the reference to which
> configuration file holds the information for the location of the
> keystore file. I used java keytool to set up the keystore, generated a
> CSR, and I have received a CRT from our CA, which I added to the
> keystore, but I am not sure how to tell glassfish where the keystore is.

You can set the following two properties in domain.xml to a different
value :
       
<jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks</jvm-options>
        
<jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks</jvm-options>

rgds.