aboutsummaryrefslogtreecommitdiffstats
path: root/matrix-server/certbot/scripts/update-haproxy-certificates.sh
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-01-17 06:18:35 +0000
committerterminaldweller <thabogre@gmail.com>2021-01-17 06:18:35 +0000
commitecef4e3cc9f2d414b817b18a0b9c7303c39e519a (patch)
tree7d947424ee1bd386a39a6e5a2bb41f4e9aeb4ead /matrix-server/certbot/scripts/update-haproxy-certificates.sh
parentfixed the matrix image (diff)
downloaddockerimages-ecef4e3cc9f2d414b817b18a0b9c7303c39e519a.tar.gz
dockerimages-ecef4e3cc9f2d414b817b18a0b9c7303c39e519a.zip
matrix server docker-compose WIP
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 -