I am writing this to help every fellow remedy admin who wants to add a certificate (SSL) to his tomcat midtier or smart it server. I could not find a simple procedure step anywhere so I will post my finding here whishing that it will help somebody.
I just want to thank Jean Christophe with his blog. It’s from this article that I was able to figure out how this is working.
So here we go, the process is simple when you know what to do.
In this folder, you need to copy the certificate pfx file
Edit the file server.xml and add the following information:
<Connector port="80" protocol="HTTP/1.1"
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true"
maxThreads="2000" scheme="https" secure="true"
sslEnabledProtocols="TLSv1.1, TLSv1.2, TLSv1.3"
keystorePass="%pfx file password%"
This should enable https to work on the tomcat.
Now to always redirect http to https you need to add the following parameter to the web.xml file in the same folder
<!-- Force HTTPS, required for HTTP redirect! -->
<!-- auth-constraint goes here if you require authentication -->
If you have any suggestion as to how I could improve this article don’t hesitate.