Makefile to generate SSL certs with letsencrypt
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'