mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 23:32:06 -04:00
commit
580dd952af
3 changed files with 3 additions and 4 deletions
|
|
@ -36,7 +36,7 @@ def dvsni_gen_cert(filepath, name, r_b64, nonce, key):
|
|||
key.pem, [nonce + CONFIG.INVALID_EXT, name, ext])
|
||||
|
||||
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)
|
||||
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@
|
|||
.. note:: This challenge has not been implemented into the project yet
|
||||
|
||||
"""
|
||||
import display
|
||||
|
||||
from letsencrypt.client import challenge
|
||||
from letsencrypt.client import display
|
||||
|
||||
|
||||
class RecoveryToken(challenge.Challenge):
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ def read_file(filename):
|
|||
|
||||
"""
|
||||
try:
|
||||
return filename, file(filename, 'rU').read()
|
||||
return filename, open(filename, 'rU').read()
|
||||
except IOError as exc:
|
||||
raise argparse.ArgumentTypeError(exc.strerror)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue