How to Install Let’s Encrypt SSL

Date posted: 28-sep-2018

Please follow  this steps to install the SSL certificate.

Step 1: Install CertBot

Type the given commands
sudo apt-get install software-properties-common python-software-properties

sudo add-apt-repository ppa:certbot/certbot

sudo apt-get update

sudo apt-get install python-certbot-apache

 

Step 2: Install Let’s Encrypt SSL

Install Let’s Encrypt SSL certificate on your domain (do not forget to replace ‘yourdomain.com’ with your actual domain):

sudo certbot --apache -d yourdomain.com

Step 3: Renew the SSL certificate with a cron job.
Create a cron job so the SSL certificate is renewed automatically. Run the following command

crontab -e

and add the following line

0 0 1 * * /usr/bin/letsencrypt renew >> /var/log/letsencrypt-renew.log

Save and close that file and restart cron service for the changes to take effect:

service cron restart

 

Leave a Reply