Computer and IT knowledge - things to know
certbot / letsencrypt - daily cronjob to renew certificate with webserver reload if cert was renewed
#crontab for renew letsencrypt certificate
9 10 * * * (echo "-------" && date && python -c 'import random; import time; time.sleep(random.random() * 60)' && certbot renew --deploy-hook "systemctl reload nginx") >>/var/log/certbotrenew.log 2>&1
5 0 1 * * gzip -f /var/log/certbotrenew.log >/dev/null 2>&1
computer2know :: thank you for your visit :: have a nice day :: © 2024