https://certbot.eff.org/instructions

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# install snapd
sudo apt update
sudo apt install snapd
sudo snap install core; sudo snap refresh core
# install certbot
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot

# run 
sudo certbot certonly --nginx
# config
sudo certbot --nginx
# renew --dry-run
sudo certbot renew --dry-run