https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/
apt-get update sudo apt-get install certbot apt-get install python3-certbot-nginx vim/etc/nginx/conf.d/www.example.com.conf
server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; server_name example.com www.example.com; }
sudo systemctl restart nginx
sudo certbot --nginx -d example.com
sudo certbot renew
sudo crontab -e
0 12 * * * /usr/bin/certbot renew --quiet