Author: Derek Leung
Product version: 2024.X
Need
Customer wants to enable HTTPS on AWS Marketplace QuickStart VM with a free certificate from Let's encrypt.
Summarized Solution
- Install certbot
- Install Let's encrypt certificate with Tomcat9
- Restart Tomcat9
- Refresh certificate manually after 90 days
Reference : How to install Let’s Encrypt with Tomcat
Detailed Solution
1. Create a Hosted Zone in AWS Route 53.
3. Create the SSL certificate for ssltest.servers.semarchy.com
4. SSL certificates are generated here
5. Copy the SSL certificates to Tomcat9/conf
6. Set the permissions to tomcat:tomcat for the .PEM files
7. Add the Connector Tag into the server.xml, comment out other Connector sections with port=443
8. Restart Tomcat
9. Configure Network Security Group to allow inbound connection with port 443
10. Access the server with HTTPS
11. Examine the certificate
12. SSL certificate provided by Let's encrypt expire after 90 days, please manually refresh it using Step 3 to Step 5.