aboutsummaryrefslogtreecommitdiffstats
path: root/matrix-server/certbot/scripts/update-haproxy-certificates.sh
diff options
context:
space:
mode:
Diffstat (limited to 'matrix-server/certbot/scripts/update-haproxy-certificates.sh')
-rw-r--r--matrix-server/certbot/scripts/update-haproxy-certificates.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/matrix-server/certbot/scripts/update-haproxy-certificates.sh b/matrix-server/certbot/scripts/update-haproxy-certificates.sh
new file mode 100644
index 0000000..a1f9fc6
--- /dev/null
+++ b/matrix-server/certbot/scripts/update-haproxy-certificates.sh
@@ -0,0 +1,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 -