How to Enable SSL using Let’s Encrypt on Apache Ubuntu 16.04

To enable HTTPS on your website, you need to get a certificate (a type of file) from a Certificate Authority (CA). Let’s Encrypt is a CA.

With SSH or Shell Access

Here we are going to use use the Certbot ACME client. Its recommend by Let’s Encrypt CA.

Install Certbot on Ubuntu

On Ubuntu systems, the Certbot team maintains a PPA. You can add it to your list of repositories and install Certbot by running the following commands.

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-apache 

Get SSL Certificate

sudo certbot --apache

Running this command will get a certificate for you and have Certbot edit your Apache configuration automatically to serve it

Leave a Reply

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