Skip to Content

Step 9: Set Up SSL with Let’s Encrypt

Install Certbot:

apt install -y certbot python3-certbot-nginx certbot --nginx -d yourdomain.com -d www.yourdomain.com

Follow the prompts. Certbot will automatically update your Nginx config with SSL and set up auto-renewal.

Last updated on