Disclaimer: This guide was automatically translated by AI from the German original. Please verify commands and technical details before using them.
Back to overview: Debian guides
apt update && apt upgrade -y
apt install certbot python-certbot-apache -y
Note: If the package is not available, use this instead:
apt install certbot python3-certbot-apache -y
Start Certbot:
certbot --authenticator webroot --installer apache
Follow the instructions:
Y for yes, N for no./var/www/html/.1 = No, no redirect2 = Yes, enable redirectTo renew the certificates automatically, run the following command:
cd /etc/cron.daily ; wget https://raw.githubusercontent.com/kanuracer/scripts/main/linux/helper/certrenew.sh ; chmod +x certrenew.sh ; cd
Tip: This cron job is checked daily and renews the certificate automatically when needed.