Software /
code /
prosody
Comparison
certs/Makefile @ 7035:085a286e2873
certs/Makefile: Fix generating cert from only a key (no config then)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 24 Dec 2015 10:39:13 +0100 |
parent | 7031:89221daefae9 |
child | 7194:1c55403d06c4 |
comparison
equal
deleted
inserted
replaced
7034:27f4d63f136a | 7035:085a286e2873 |
---|---|
43 openssl req -new -x509 -newkey rsa:$(keysize) -nodes -keyout $*.key \ | 43 openssl req -new -x509 -newkey rsa:$(keysize) -nodes -keyout $*.key \ |
44 -days 365 -sha256 -utf8 -config $(firstword $^) -out $@ | 44 -days 365 -sha256 -utf8 -config $(firstword $^) -out $@ |
45 @chmod 400 $*.key -c | 45 @chmod 400 $*.key -c |
46 | 46 |
47 %.crt: %.key | 47 %.crt: %.key |
48 openssl req -new -x509 -nodes -key $^ -days 365 \ | 48 openssl req -new -x509 -key $^ -days 365 -sha256 -utf8 -subj /CN=$* -out $@ |
49 -sha256 -out $@ -utf8 -config $(firstword $^) | |
50 | 49 |
51 %.crt: | 50 %.crt: |
52 umask 0077 && touch $*.key | 51 umask 0077 && touch $*.key |
53 openssl req -new -x509 -newkey rsa:$(keysize) -nodes -keyout $*.key \ | 52 openssl req -new -x509 -newkey rsa:$(keysize) -nodes -keyout $*.key \ |
54 -days 365 -sha256 -out $@ -utf8 -subj /CN=$* | 53 -days 365 -sha256 -out $@ -utf8 -subj /CN=$* |