aboutsummaryrefslogtreecommitdiffstats
path: root/certs/Makefile
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-12-23 12:07:03 +0100
committerKim Alvefur <zash@zash.se>2015-12-23 12:07:03 +0100
commitf1ea08ed4293e98666197385e6b521949bc82b46 (patch)
treecca9e59afaa30fa44b57716dd38e7961b0e0fa33 /certs/Makefile
parentc10f3e22ddb1ec4c899ef96f49cb6899c9083cec (diff)
downloadprosody-f1ea08ed4293e98666197385e6b521949bc82b46.tar.gz
prosody-f1ea08ed4293e98666197385e6b521949bc82b46.zip
certs/Makefile: Run key generation with a stricter umask (fixes a race condition)
Diffstat (limited to 'certs/Makefile')
-rw-r--r--certs/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/certs/Makefile b/certs/Makefile
index f3854c5f..c709ff91 100644
--- a/certs/Makefile
+++ b/certs/Makefile
@@ -26,5 +26,5 @@ keysize=2048
sed 's,example\.com,$*,g' openssl.cnf > $@
%.key:
- openssl genrsa $(keysize) > $@
- @chmod 400 $@
+ umask 0077 && openssl genrsa -out $@ $(keysize)
+ @chmod 400 $@ -c