Update Package Repository
sudo apt update
Install Certbot package
sudo apt-get install python3-certbot-nginx certbot
Run command to enable ssl for domain
sudo certbot --nginx -d cms.example.com
Restart nginx Service
sudo systemctl restart nginx
Auto renew SSL
#Setup cronjob on root
#crontab -e
0 1 * * * /usr/bin/certbot renew --quiet
0 comments:
Post a Comment