LetsEncrypt and Certbot

Free HTTPS with LetsEncrypt and Certbot Ubuntu 20.04

Create valid HTTPS connections to your websites configured with Nginx

Install Certbot and Nginx extension

sudo apt install certbot python3-certbot-nginx

Setup LetsEncrypt

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

Test renew subscription

sudo certbot renew --dry-run

Check auto renew timer

sudo systemctl status certbot.timer

Add Subdomains configured in your nginx

sudo certbot --nginx -d example.com -d www.example.com -d sub1.example.com -d sub2.example.com --expand