HTTPS with Certbot

  1. Install
sudo apt install certbot python3-certbot-nginx
  1. Create the cert. school.bgevko.com is an example domain.
sudo certbot --nginx -d school.bgevko.com
  1. Verify the renewal process works correctly.
sudo certbot renew --dry-run
  1. 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


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *