Great Blog

25 Oct 2020

acme.sh with haproxy

Here is how to install SSL certs using acme.sh that will work with haProxy

acme.sh \
  --install-cert \
  -d domain.com \
  --reloadcmd \
    "cat \$CERT_KEY_PATH \$CERT_FULLCHAIN_PATH >/etc/haproxy/ssl/domain.com && \
    service haproxy reload"