LetsEncrypt SSL on Amazon Lightsail Ubuntu 16.04.5 LTS

Published on Author JFLeave a comment

ProcessIO is now running SSL for free thanks to LetsEncrypt.

It took about 5 minutes to get set up, so if you haven’t done it, do it.

Ubuntu 16.04.5 LTS

I used  Certbot, so I went to the site and selected my web server and OS, then followed the instructions.

Important! Amazon Lightsail has a firewall you can configure. If you don’t configure it to allow HTTPS, your SSL certificate request will fail.

Click on Instances > Your instance name > Networking


Then click Add another. Select HTTPS from the dropdown and it will auto add the port, etc. Make sure to hit save!


Finally, Certbot, for whatever reason, added my site redirects to SSL, but left them commented out.

sudo nano /etc/apache2/sites-available/processio.com-le-ssl.conf

I removed the comments (#) from the following lines:

RewriteEngine on
RewriteCond %{SERVER_NAME} =processio.com [OR]
RewriteCond %{SERVER_NAME} =www.processio.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

Then reloaded apache:

sudo apachectl graceful

Now the site redirects to SSL.

Important next steps:

Update Google Analytics, Google Webmaster Tools, Google Search Console, etc.

Job done.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.