Script for Automatically renew certs

Hello is it possible to create a script which will automatically renew the certs in Apache2 and Haproxy.Thanks

Yes, that is possible.

Something like this will work ?
# move to the correct let’s encrypt directory
cd /etc/letsencrypt/live/$SITE
# cat files to make combined .pem for haproxy
cat fullchain.pem privkey.pem > /etc/haproxy/certs/$SITE.pem
# reload haproxy
service haproxy reload

Looks sound. You can use “hooks” to automatically run such a script at renewal.

See for more information the last part of the renewal section in the certbot documentation:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.