- Install
sudo apt install certbot python3-certbot-nginx
- Create the cert.
school.bgevko.comis an example domain.
sudo certbot --nginx -d school.bgevko.com
- Verify the renewal process works correctly.
sudo certbot renew --dry-run
- Restart NGINX
sudo systemctl restart nginx
That’s all. Certbot will periodically renew the certificate with a cron job. You can check it with:
cat /etc/cron.d/certbot
Leave a Reply