mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 15:22:38 -04:00
Fix chmods security error: 644 != 0644
This commit is contained in:
parent
e56ee5fa4e
commit
fa94a4f57a
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue