GlassFish has the ability to allow connections to JMX over SSL. This is an easy change to make and it is a great security benefit, so in this recipe we will go through the steps to add SSL support to GlassFish and VisualVM to connect over SSL.
To enable SSL-encrypted connection for JMX, a few configuration items as well as SSL keystore preparation must be completed first.
The GlassFish server is distributed with a self-signed SSL keystore located at
$GLASSFISH_HOME/glassfish/domains/domain1/config/keystore.jks and will be used for this recipe.
This recipe will configure the JMX connection to leverage GlassFish authentication which will either set the