2
votes

I'm trying to add the keystore and truststore passwords in the domain.xml for glassfish 3.1.2.2 as jvm options.

-Djavax.net.ssl.trustStorePassword=${ALIAS=keystorepassword} -Djavax.net.ssl.keyStorePassword=${ALIAS=truststorepassword}

Using aliases seems to not be working.

Any ideas how this can achieved ?

1

1 Answers

1
votes

For future readers who reach this question, hoping to do this for Glassfish 3.1.2.x, this is not possible due to the bug GLASSFISH-18961 :

enter image description here

The bug has been fixed. The fix referenced in the above ticket is here : https://java.net/projects/glassfish/sources/svn/revision/55379, but it has not been backported to Glassfish 3.x

Also, according to this questions "does glassfish support password aliases in jvm args?", this works fine in Glassfish 4.