Created
August 20, 2016 15:09
-
-
Save thbkrkr/04a1ca8b1b505e5fa24da9daee66b73c to your computer and use it in GitHub Desktop.
Makefile to generate SSL certs with letsencrypt
This file contains hidden or 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
| DOMAIN := xxxxx | |
| all: get concat | |
| get: | |
| sudo /home/admin/.local/share/letsencrypt/bin/letsencrypt \ | |
| certonly --standalone -d $(DOMAIN) | |
| concat: | |
| DOMAIN=$(DOMAIN) \ | |
| sudo -E bash -c 'cat /etc/letsencrypt/live/${DOMAIN}/fullchain.pem /etc/letsencrypt/live/${DOMAIN}/privkey.pem > certs/${DOMAIN}.pem' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment