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
# 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: https://certbot.eff.org/docs/using.html#renewing-certificates