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

# Start transaction
echo -e "set ssl cert /usr/local/etc/haproxy/certificates/davole.com.pem <<\n$(cat /etc/certificates/davole.com.pem)\n" | socat tcp-connect:haproxy:9999 -

# Commit transaction
echo "commit ssl cert /usr/local/etc/haproxy/certificates/davole.com.pem" | socat tcp-connect:haproxy:9999 -

# Show certification info (not essential)
echo "show ssl cert /usr/local/etc/haproxy/certificates/davole.com.pem" | socat tcp-connect:haproxy:9999 -