sudo apt update && sudo apt upgrade
sudo apt-get install git
sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
cd /opt/letsencrypt
sudo -H ./letsencrypt-auto certonly --standalone -d example.com -d www.example.com
sudo ls /etc/letsencrypt/live
./certbot-auto certificates
cd /opt/letsencrypt
sudo -H ./letsencrypt-auto certonly --standalone --renew-by-default -d example.com -d www.example.com
./letsencrypt-auto renew
sudo crontab -e
0 0 1 * * /opt/letsencrypt/letsencrypt-auto renew
cd /opt/letsencrypt
sudo git pull
sudo crontab -e
0 0 1 * * cd /opt/letsencrypt && git pull