aboutsummaryrefslogblamecommitdiffstats
path: root/matrix-server/certbot/scripts/update-haproxy-certificates.sh
blob: 4fad7df79e9c4019813ac9f819fc6b52b5b7128e (plain) (tree)
1
2
3
4
5
6
7
         
 
                              
 
                                                                                                                                                                        
                                                                                                                 
                                                                                                               
#!/bin/sh

echo "running update certs..."

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 -
echo "commit ssl cert /etc/letsencrypt/live/terminaldweller.com/fullchain.pem" | socat tcp-connect:haproxy:9999 -
echo "show ssl cert /etc/letsencrypt/live/terminaldweller.com/fullchain.pem" | socat tcp-connect:haproxy:9999 -