diff options
author | Kim Alvefur <zash@zash.se> | 2015-12-23 12:07:03 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-12-23 12:07:03 +0100 |
commit | 22f1422f51beee193f64a6e2c6c3986431922f0b (patch) | |
tree | cca9e59afaa30fa44b57716dd38e7961b0e0fa33 | |
parent | 18b6111e743b371d555d308249d58960751eccb7 (diff) | |
download | prosody-22f1422f51beee193f64a6e2c6c3986431922f0b.tar.gz prosody-22f1422f51beee193f64a6e2c6c3986431922f0b.zip |
certs/Makefile: Run key generation with a stricter umask (fixes a race condition)
-rw-r--r-- | certs/Makefile | 4 |
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 |