Starting from Geronimo 2.1.5, users can connect to a running server through a SSL tunnel by specifying the location of the trusted keystore file to org.apache.geronimo.keyStoreTrustStorePasswordFile
. The default SSL keystore of the Geronimo server is geronimo-default
, which locates at /var/security/keystores/
directory.
Follow the instructions below to complete a SSL connection to the Geronimo server.
- Enable a system plug-in named
org.apache.geronimo.framework/jmx-security/2.1.5/car
using start sub-command or via the administration console on the server. - Create a key file containing the password pairs used to connect to the server, which will be like:
Where secret is the default password of keystorekeystorePasswordfile.keykeyStorePassword=secret
trustStorePassword=secretgeronimo-default
in the server. For better security, use encrypt sub-command to encrypt the plain text password in the file. By default, the content ofkeystorePasswordfile.key
file is from/var/config/config-substitutions.properties
file. - Save the file to your preferred location such as myDir and then export the location of keystorePasswordfile.key file to
org.apache.geronimo.keyStoreTrustStorePasswordFile
.
orexport JAVA_OPTS="-Dorg.apache.geronimo.keyStoreTrustStorePasswordFile=$myDir/KeystoreTrustSotrePasswordFile.key"
set JAVA_OPTS="-Dorg.apache.geronimo.keyStoreTrustStorePasswordFile=%myDir%/KeystoreTrustSotrePasswordFile.key"
- Initiate a connecting request to the server via SSL, then you will see the connection is successfully acquired. For example, using available commands on the server that support --secure option.