certs/Makefile: Fix generating cert from only a key (no config then)
authorKim Alvefur <zash@zash.se>
Thu, 24 Dec 2015 09:39:13 +0000 (10:39 +0100)
committerKim Alvefur <zash@zash.se>
Thu, 24 Dec 2015 09:39:13 +0000 (10:39 +0100)
certs/Makefile

index 534aa0d48d1291f3d37b004ccf68283a00beb390..96361748e7c06a44e2ca7318c7ac8d187dccb931 100644 (file)
@@ -45,8 +45,7 @@ keysize=2048
        @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