SSL: Configure dotCMS to Run SSL - Documentation topics on: certificate,certification,configure dotcms to run ssl,connector,https,jks format,keytool,openssl,server.xml,ssl,.

This documentation is a static copy for this version. For current documentation, see:

SSL: Configure dotCMS to Run SSL

To enable dotCMS to serve pages over SSL or https, you need to do the following:

  1. Aquire a valid SSL certificate in JKS format.
  2. Enable the SSL connector in the server.xml file (/dotserver/tomcat-X.x.xx/conf/server.xml).
    • Note: It is strongly recommended that all changes to dotCMS configuration files be made through a ROOT folder plugin.

Edit server.xml

Add the following <Connector> section to server.xml:


Note: Replace the address, keystoreFile, and keystorePass with appropriate values for your site. To avoid problems, it is recommended that you use an absolute path for the keystore.

Verify Your Configuration

Verify the Keystore and Password

To make sure that the keystore and password are valid, enter the following command to list the certificates and keys:

keytool -list -keystore [KeystoreFileName]

Note: Replace [KeystoreFileName] with the same value used for keystoreFile in your server.xml file (above).

Verify the Connection

To make sure your SSL configuration is working, use openssl to open a connection to your https webserver. The following command is the ssl equivalent of telnet [ServerIPAddress] 80:

openssl s_client -connect [ServerIPAddress] -state

Note: Replace [ServerIPAddress] with the same value used for address in your server.xml file (above).