The Apache Tomcat® software is an open source implementation of the Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket technologies
To install SSL to on a tomcat server, please follow the below steps.
Step 1: Create Account
CWP.Admin Left Menu -> User Accounts -> New Account -> Enter domain,username and password -> create account
Step 2: Install Apache tomcat
CWP.Admin Left Menu -> Webserver Settings -> Tomcat Manager -> install tomcat
After tomcat is installed, click start
You should the following which means tomcat is running on port 8080
Process running on default tomcat port 8080
tcp6 0 0 :::8080 :::* LISTEN 20834/java
Step 3: Install AutoSSL
CWP.Admin left Menu -> Webserver settings -> SSL Certificates -> AutoSSL -> select user and domain -> install SSL
Step 4 : Configure Nginx/Varnish or Apache as proxy servers
These options depend on the webservers you have currently installed
Example if you have installed nginx/varnish/apache you can use:
nginx -> custom port (this will proxy directly to tomcat) RECOMMENDED
nginx/varnish -> custom port (this will proxy to varnish cache and then to tomcat)
nginx/varnish/apache -> custom port (this will proxy to varnish cache and then to apache and then to tomcat)
Configure webservers for domain to be used for Tomcat:
CWP.Admin left Menu -> Webserver settings -> Webserver Domain Conf -> Select Username -> Select Domain/Subdomain -> create configuration -> select any option with (custom port) -> check the box - Rebuild webserver conf for domain on save -> Enter port 8080 for the custom port, leave IP as 127.0.0.1 -> save changes
step 5: Test HTTPS access now
Domain can now be accessed via https.
You can also install ssl via ssl manager later if you have set apache or nginx as default webservers and set as a proxy to port via WebServers Domain Conf module.