1
0
Fork 0
docker-easy-haproxy/assets/scripts/certbot_to_haproxy.sh
2022-08-15 05:23:29 +00:00

11 lines
No EOL
384 B
Bash
Executable file

#!/bin/bash
# Loop through all Let's Encrypt certificates
for CERTIFICATE in `find /etc/letsencrypt/live/* -type d`; do
CERTIFICATE=`basename $CERTIFICATE`
# Combine certificate and private key to single file
cat /etc/letsencrypt/live/$CERTIFICATE/fullchain.pem /etc/letsencrypt/live/$CERTIFICATE/privkey.pem > /etc/haproxy/certs/$CERTIFICATE.pem
done
touch /tmp/force-reload