Installing SSL on Nginx with Certbot

VDS / VPS Servers · 22.02.2025
Installing SSL on Nginx with Certbot

Certbot — Free SSL for Nginx

Install Certbot

apt install certbot python3-certbot-nginx -y

Get a Certificate

certbot --nginx -d yourdomain.com -d www.yourdomain.com

Certbot will automatically update your Nginx config for HTTPS.

Auto-renewal

Certbot installs a systemd timer for auto-renewal. Check it:

systemctl status certbot.timer
← Back to Knowledge Base Ask Support