Files
certbot/docker/scripts/3-update-haproxy-cert.sh
T
private-user 3d59a1eea1
Build docker image and push to registry.bitdeals.org / main-build-job (push) Successful in 1m33s
fix
2026-07-01 16:32:47 +03:00

13 lines
486 B
Bash

#!/bin/sh
# Start transaction
echo -e "set ssl cert /usr/local/etc/haproxy/certificates/site.pem <<\n$(cat /etc/certificates/site.pem)\n" \
| socat - tcp-connect:haproxy:9999,retry=30,interval=2,connect-timeout=5
# Commit transaction
echo "commit ssl cert /usr/local/etc/haproxy/certificates/site.pem" | socat tcp-connect:haproxy:9999 -
# Show certification info (not essential)
echo "show ssl cert /usr/local/etc/haproxy/certificates/site.pem" | socat tcp-connect:haproxy:9999 -