Adding SSL to Tomcat (Linux)

  • 7020439
  • 11-May-2012
  • 07-Aug-2017


Retain (All versions)


How to enable SSL on Tomcat?


1) Open a SSH Session to your Retain Server and download the SSL Generation Script.

Run wget


Run chmod +x *.sh.


Run ./

Follow the instructions on the screen.


2) Disable non-SSL access (Optional).

If you want to disable non-SSL access find the lines:

<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->

<Connector port="48080" maxHttpHeaderSize="8192"

Then change the second line to:

<!-- <Connector port="48080" maxHttpHeaderSize="8192"

and add --> to the end of this line

connectionTimeout="20000" disableUploadTimeout="true" /> -->

This comments out that section, so after a tomcat restart the non-SSL version will not be activated.

Additional Information

This article was originally published in the GWAVA knowledgebase as article ID 2063.