Quotidien Shaarli

Tous les liens d'un jour sur une page.

April 28, 2022

Let’s Encrypt with HAProxy – Kevin Bentlage

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/ssl/$CERTIFICATE.pem

done