mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 02:44:21 +02:00
If cert_path provided - do not randomize it
This commit is contained in:
+7
-1
@@ -317,7 +317,13 @@ class Client(object):
|
||||
|
||||
cert_pem = OpenSSL.crypto.dump_certificate(
|
||||
OpenSSL.crypto.FILETYPE_PEM, certr.body.wrapped)
|
||||
cert_file, act_cert_path = le_util.unique_file(cert_path, 0o644)
|
||||
|
||||
if cert_path != constants.CLI_DEFAULTS['auth_cert_path']:
|
||||
cert_file = le_util.safe_open(cert_path, chmod=0o644)
|
||||
act_cert_path = cert_path
|
||||
else:
|
||||
cert_file, act_cert_path = le_util.unique_file(cert_path, 0o644)
|
||||
|
||||
try:
|
||||
cert_file.write(cert_pem)
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user