Install lets encrypt SSL in Nginx Ubuntu 22.04

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


Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment