mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:32:13 +02:00
Merge branch 'master' into zope.interface
Conflicts: letsencrypt/client/recovery_token_challenge.py
This commit is contained in:
@@ -36,7 +36,7 @@ def dvsni_gen_cert(filepath, name, r_b64, nonce, key):
|
|||||||
key.pem, [nonce + CONFIG.INVALID_EXT, name, ext])
|
key.pem, [nonce + CONFIG.INVALID_EXT, name, ext])
|
||||||
|
|
||||||
with open(filepath, 'w') as chall_cert_file:
|
with open(filepath, 'w') as chall_cert_file:
|
||||||
chall_cert_file.write(cert_pem)
|
chall_cert_file.write(cert_pem)
|
||||||
|
|
||||||
return le_util.jose_b64encode(dvsni_s)
|
return le_util.jose_b64encode(dvsni_s)
|
||||||
|
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ def read_file(filename):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
return filename, file(filename, 'rU').read()
|
return filename, open(filename, 'rU').read()
|
||||||
except IOError as exc:
|
except IOError as exc:
|
||||||
raise argparse.ArgumentTypeError(exc.strerror)
|
raise argparse.ArgumentTypeError(exc.strerror)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user