All Guides
Certbot Automatic SSL Renewal
Configure automatic renewal of Let's Encrypt SSL certificates with Certbot.
Beginner10 min
Setup Steps
1. Install Certbot:
sudo apt install certbot -y2. Install the plugin for your web server:
# Apache
sudo apt install python3-certbot-apache -y
# Nginx
sudo apt install python3-certbot-nginx -y3. Get a certificate:
# Apache
sudo certbot --apache -d mysite.com -d www.mysite.com
# Nginx
sudo certbot --nginx -d mysite.com -d www.mysite.com4. Test automatic renewal:
sudo certbot renew --dry-run5. Check Certbot timer:
sudo systemctl status certbot.timer6. Manual renewal:
sudo certbot renew7. Post-renewal hook (restart service):
sudo certbot renew --deploy-hook "systemctl reload nginx"8. View certificate information:
sudo certbot certificates9. Delete a certificate:
sudo certbot delete --cert-name mysite.com10. Wildcard certificate (DNS verification required):
sudo certbot certonly --manual --preferred-challenges dns -d "*.mysite.com"Related Guides
UFW Firewall Setup
Secure your server with Ubuntu Uncomplicated Firewall (UFW).
Fail2Ban Setup
Protect your server against brute-force attacks with Fail2Ban.
VPN Setup (WireGuard)
Set up a WireGuard VPN server and configure clients.
ModSecurity WAF Setup
Install ModSecurity Web Application Firewall with Apache or Nginx.