aboutsummaryrefslogtreecommitdiffstats
path: root/matrix-server/certbot/scripts/update-haproxy-certificates.sh
blob: 9eaae7c099047b12e563a362756069d6ab3470fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

echo "running update certs..."
# Start transaction
echo -e "set ssl cert /etc/letsencrypt/live/terminaldweller.com/fullchain.pem <<\n$(cat /etc/certificates/terminaldweller.com.pem)\n" | socat tcp-connect:haproxy:9999 -

# Commit transaction
echo "commit ssl cert /etc/letsencrypt/live/terminaldweller.com/fullchain.pem" | socat tcp-connect:haproxy:9999 -

# Show certification info (not essential)
echo "show ssl cert /etc/letsencrypt/live/terminaldweller.com/fullchain.pem" | socat tcp-connect:haproxy:9999 -