Domains and SSL · 5 min
Free HTTPS with Let's Encrypt
Get a free, auto-renewing SSL certificate for your domain with Certbot.
Let's Encrypt gives free certificates, and Certbot sets them up and renews them for you. You need Nginx serving your domain on port 80 first (see the Next.js or static site guides).
Before you start
- Your domain points to the server.
- Ports 80 and 443 are allowed in the firewall.
1. Install Certbot
sudo apt install -y certbot python3-certbot-nginx2. Get the certificate
sudo certbot --nginx -d example.com -d www.example.comEnter your email, agree to the terms, and choose to redirect HTTP to HTTPS. Certbot updates your Nginx config for you.
3. Check renewal
Certificates last 90 days and renew automatically. Test it:
sudo certbot renew --dry-runTroubleshooting
- "Connection refused" or timeout: port 80 is blocked, or the domain doesn't point here yet.
- "Too many failed authorizations": you hit Let's Encrypt's limit. Wait an hour, fix the DNS or firewall, and try again.
Stuck? Contact us or open a support ticket from your panel.