Install and Configure SSL
sudo apt update && sudo apt install certbot
sudo certbot certonly \ -a webroot --webroot-path=/usr/share/nginx/secure-ssl \ -d secure-ssl.linuxsec.org
Add auto renew to cronjob
0 0 1 * * /usr/bin/certbot renew >> /var/log/le-renew.log && /bin/systemctl restart nginx
Last updated 2 years ago