From: Christoph Egger Date: Thu, 21 Jan 2016 14:17:32 +0000 (+0100) Subject: Add first Makefile X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=7614c112a4fd1dfdd1e3ef87faeb13265e409e44;p=tooling%2Ftls.git Add first Makefile --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..80ccae6 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +#!/usr/bin/make -f + +export PATH=$(PATH):/srv/tls/bin + + + + +%: + mkdir -p $@ + vim $@/template + certtool --generate-privkey --bits 4096 --outfile $@/key.pem + certtool --generate-request --no-crq-extensions \ + --template $@/template \ + --load-privkey $@/key.pem \ + --outfile $@/csr.pem + acme --account-key /srv/tls/letsencrypt/account.key \ + --csr $@/csr.pem \ + --acme-dir /srv/tls/well-known/acme-challenge/ > $@/cert.pem + cat /srv/tls/ca/lets-encrypt-x1-cross-signed.pem >> $@/cert.pem + +setup: + adduser --system --disabled-login --home /srv/tls --force-badname --group _tls + certtool --generate-privkey --bits 4096 --outfile letsencrypt/account.key