apt install certbot nginx code example
Example 1: how to secure letsencrypt on ubuntu 20.04 with nginx
sudo apt install certbot python3-certbot-nginx
Example 2: lets encrypt nginx
#Once you have installed CertBot and Lets Encyrypt,
#and you have set up your server blocks,
#you will be able to run the below script in your terminal
sudo certbot --nginx -d example.com -d www.example.com