summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-02 11:02:46 +0200
committerErich Eckner <git@eckner.net>2019-09-02 12:03:10 +0200
commitfd59cea0317d1771a2278376e4ccadfa2106eee6 (patch)
tree685644a4f074c87799e2334a8bc378acc6356e68
parent9764527af0ae384dfa736648a8ee76c3fee16114 (diff)
downloadsimple-pki-fd59cea0317d1771a2278376e4ccadfa2106eee6.tar.xz
auto-generate etc/ca.conf
-rw-r--r--Makefile2
-rw-r--r--etc/ca.conf.in (renamed from etc/ca.conf)2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c5d6633..873c9c1 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ MANDIR = /usr/share/man
VERSION = 0.0
-all: rotate-keys rotate-keys.service sign-ca sign-ca.service sign-request
+all: rotate-keys rotate-keys.service sign-ca sign-ca.service sign-request etc/ca.conf
%: %.in
sed " \
diff --git a/etc/ca.conf b/etc/ca.conf.in
index 34a7193..78d211f 100644
--- a/etc/ca.conf
+++ b/etc/ca.conf.in
@@ -6,7 +6,7 @@
[ default ]
ca = $ENV::CA
-dir = . # Top dir
+dir = #ETCDIR#/simple-pki # Top dir
# The next part of the configuration file is used by the openssl req command.
# It defines the CA's key pair, its DN, and the desired extensions for the CA