Question:
How do I enable HTTPS with SSL for Apache Tomcat in Navigator?
Solution:
1. Stop Apache Tomcat.
2. Update server.xml with the lines below:
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
keystoreFile="/opt/nastel/AutoPilotM6/bca-s-nastel.jks" keystorePass="PASSWORD"
clientAuth="false" sslProtocol="TLS" sslEnabledProtocols="TLSv1.2,TLSv1.1,TLSv1"/>
Please Note: The filename "bca-s-nastel.jks keystoreFile" is an example. Make sure to have your own keystore file and password available.
3. Update web.xml with the lines below:
<security-constraint>
<web-resource-collection>
<web-resource-name>Automatic Forward to HTTPS/SSL
</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
4. Start the Tomcat server. You should then be able to run the application with "HTTPS."