Certbot is the command line tool for Let’s Encrypt, with it, you can deploy and renew SSL certificates easily through simple commands.

While official guide telling people to install it with snapd, I found it more simple to install it via each Linux distributions’ onboard package manager.

So here we go…

Install On Ubuntu 20.04

how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04

1
sudo apt install certbot python3-certbot-nginx

Install On CentOS 7

how-to-secure-apache-with-let-s-encrypt-on-centos-7

1
sudo yum install epel-release
1
sudo yum install certbot python2-certbot-apache mod_ssl