summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-08-29 11:13:36 +0200
committerErich Eckner <git@eckner.net>2019-08-29 11:13:36 +0200
commit3c5f739b6d6d86ecb86cf88834b95a8929771c8f (patch)
treebfbc74404da56bd568e46281f67756db5abb8aac /Makefile
parentef01a84a94041987cb952bb1313d33e338818fc4 (diff)
downloadsimple-pki-3c5f739b6d6d86ecb86cf88834b95a8929771c8f.tar.xz
ca stuff done
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 85391b3..0aa1847 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
#
-# generate-and-upload-self-signed-keys - script to handle self signed keys
+# simple-pki - scripts to handle a simple pki
#
# Copyright (c) 2019 Erich Eckner <opensource at eckner dot net>
#
@@ -27,7 +27,7 @@ MANDIR = /usr/share/man
VERSION = 0.2
-all: generate-and-upload-self-signed-keys generate-and-upload-self-signed-keys.service
+all: sign-ca sign-request sign-ca.service
%: %.in
sed " \
@@ -36,14 +36,15 @@ all: generate-and-upload-self-signed-keys generate-and-upload-self-signed-keys.s
s@#ETCDIR#@$(ETCDIR)@; \
s@#HELPTEXT#\(\s\+\)#@ --help \1display this help and exit\n --version\1display version and exit@; \
" $< > $@
- [ "$@" = "generate-and-upload-self-signed-keys" ] && chmod +x "$@" || true
+ [ "$@" = "sign-ca" ] && chmod +x "$@" || true
.PHONY: install dist clean
-install:
- install -D -m0755 generate-and-upload-self-signed-keys $(DESTDIR)$(BINDIR)/generate-and-upload-self-signed-keys
- install -D -m0644 generate-and-upload-self-signed-keys.conf $(DESTDIR)$(ETCDIR)/generate-and-upload-self-signed-keys.conf
- install -D -m0644 -t $(DESTDIR)$(LIBDIR)/systemd/system generate-and-upload-self-signed-keys.service generate-and-upload-self-signed-keys.timer
+install-ca:
+ install -D -m0755 -t $(DESTDIR)$(BINDIR) sign-ca sign-request
+ install -D -m0644 -t $(DESTDIR)$(ETCDIR)/simple-pki ca.conf
+ install -d -m0700 $(DESTDIR)$(ETCDIR)/simple-pki/keys
+ install -D -m0644 -t $(DESTDIR)$(LIBDIR)/systemd/system sign-ca.service sign-ca.timer
clean:
ls -A | \