Enable SSL with Let’s Encrypt

Enable SSL with Let’s Encrypt

Instructor-svgAl-Mamun Sarkar
Nov 02 , 2020

In this lesson, I will show how how to enable SSL for free using let's encrypt. By following this lesson you will be able to able get https for your site free. 

 

Installing certbot:

add-apt-repository ppa:certbot/certbot
apt-get update
apt-get install python3-certbot-nginx

 

Getting the SSL/TLS Certificate:

sudo certbot --nginx -d example.com -d www.example.com

Replace example.com with your domain name. It will ask some questions just answer the question. 

SSL has been enabled for your sites. 

 

Automatically Renew Let’s Encrypt Certificates:

Open Crontab:

crontab -e

Paste the following command to crontab.

0 12 * * * /usr/bin/certbot renew --quiet

 

  • Share On:
  • fb
  • twitter
  • pinterest
  • instagram