Install Certbot (Let's Encrypt)
Install Certbot for free SSL certificates
Overview
Install Certbot for free SSL certificates
Commands
This will install Certbot, continue?
sudo apt-get update && sudo apt-get install -y certbot python3-certbot-nginx
Use Cases
Enable HTTPS for websites, automate SSL certificate renewal.
Prerequisites
Nginx is installed; domain resolved to server IP; port 80 publicly accessible.
FAQ
- Validation failed → check DNS resolution and firewall port 80
- Renewal failed → add a cron job
certbot renew --quiet
Related Commands
- Install Nginx
- Configure UFW Firewall