certs/Makefile: Fix generating cert from only a key (no config then)
authorKim Alvefur <zash@zash.se>
Thu, 24 Dec 2015 10:39:13 +0100
changeset 7038 085a286e2873
parent 7037 27f4d63f136a
child 7039 f26debcae34e
child 7040 5d52e4ee2ae1
certs/Makefile: Fix generating cert from only a key (no config then)
certs/Makefile
--- a/certs/Makefile	Wed Dec 23 14:21:20 2015 +0100
+++ b/certs/Makefile	Thu Dec 24 10:39:13 2015 +0100
@@ -45,8 +45,7 @@
 	@chmod 400 $*.key -c
 
 %.crt: %.key
-	openssl req -new -x509 -nodes -key $^ -days 365 \
-		-sha256 -out $@ -utf8 -config $(firstword $^)
+	openssl req -new -x509 -key $^ -days 365 -sha256 -utf8 -subj /CN=$* -out $@
 
 %.crt:
 	umask 0077 && touch $*.key