]> git.siccegge.de Git - tooling/tls.git/commitdiff
Add first Makefile
authorChristoph Egger <christoph@christoph-egger.org>
Thu, 21 Jan 2016 14:17:32 +0000 (15:17 +0100)
committerChristoph Egger <christoph@christoph-egger.org>
Thu, 21 Jan 2016 14:17:32 +0000 (15:17 +0100)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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