Wishing to make use of the Service Worker API and prevent Chrome from showing my site as ‘Not Secure’ I recently upgraded my site to use HTTPS. I decided to use Let’s Encrypt for a free SSL certificate. Let’s Encrypt recommend using Certbot to automate the process of installing and renewing SSL certificates. It also configures your server for you!
On Certbot’s site simply enter your server software and system and the site will guide you through setting up Certbot on your server.
I am using Apache 2 on Ubuntu 16.04 so the steps were as follows.
apt-get update apt-get install software-properties-common add-apt-repository ppa:certbot/certbot apt-get update apt-get install python-certbot-apache
certbot renew # add as a cron job
That’s it! Setting up HTTPS only took a matter of minutes and worked without a hitch. My experience with Let’s Encrypt and Certbot so far has been perfect and I would highly recommend the services to anyone wishing to switch to HTTPS.