Last active
March 7, 2018 14:26
-
-
Save theel0ja/838638fae279d1f90e19ec18e0410d98 to your computer and use it in GitHub Desktop.
HAproxy Let's Encrypt combiner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Combine function | |
combine() { | |
# move to the correct let's encrypt directory | |
cd /etc/letsencrypt/live/$SITE | |
# cat files to make combined .pem for haproxy | |
cat fullchain.pem privkey.pem > /etc/haproxy/certs/$SITE.pem | |
} | |
# Sites | |
SITE=nue01-de.theel0ja.info combine | |
# Reload HAProxy | |
sudo service haproxy reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment