From fa94a4f57a15ea013558e95f5b9df7c41b8dc217 Mon Sep 17 00:00:00 2001 From: Jakub Warmuz Date: Sat, 29 Nov 2014 03:13:16 +0100 Subject: [PATCH] Fix chmods security error: 644 != 0644 --- letsencrypt/client/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/letsencrypt/client/client.py b/letsencrypt/client/client.py index 3fdcd7c1f..87d4b9d1f 100644 --- a/letsencrypt/client/client.py +++ b/letsencrypt/client/client.py @@ -384,7 +384,7 @@ class Client(object): """ cert_chain_abspath = None - cert_fd, cert_file = le_util.unique_file(CONFIG.CERT_PATH, 644) + cert_fd, cert_file = le_util.unique_file(CONFIG.CERT_PATH, 0644) cert_fd.write( crypto_util.b64_cert_to_pem(certificate_dict["certificate"])) cert_fd.close() @@ -392,7 +392,7 @@ class Client(object): cert_file) if certificate_dict.get("chain", None): - chain_fd, chain_fn = le_util.unique_file(CONFIG.CHAIN_PATH, 644) + chain_fd, chain_fn = le_util.unique_file(CONFIG.CHAIN_PATH, 0644) for cert in certificate_dict.get("chain", []): chain_fd.write(crypto_util.b64_cert_to_pem(cert)) chain_fd.close()