How to auto-refresh LetsEncrypt certificate on Synology routers
21 Jun 2024 09:08 | synology | security | letsencrypt
I’ve been manually monitoring and renewing it like a chump. Turns out it’s trivially easy to automate the renewal:
curl https://gist.githubusercontent.com/m4rkw/6c9b65dcd4914e1aa03188d2b5d5c5b8/raw/09632a5be4dddf029916367dd9fa463cd3d3b9ae/gistfile1.txt -o /usr/local/bin/renew_cert.py
chmod 755 /usr/local/bin/renew_cert.py
echo "0 0 * * * root /usr/local/bin/renew_cert.py" >> /etc/crontab
killall -HUP crond
