mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 06:15:36 -04:00
Read bytes for now for compatibility
This commit is contained in:
parent
f19ebab441
commit
54d8397334
1 changed files with 1 additions and 1 deletions
|
|
@ -299,7 +299,7 @@ class Client(object):
|
|||
# We've been asked to reuse a specific existing private key.
|
||||
# Therefore, we'll read it now and not generate a new one in
|
||||
# either case below.
|
||||
with open(old_keypath, "r") as f:
|
||||
with open(old_keypath, "rb") as f:
|
||||
keypath = old_keypath
|
||||
keypem = f.read()
|
||||
key = util.Key(file=keypath, pem=keypem) # type: Optional[util.Key]
|
||||
|
|
|
|||
Loading…
Reference in a new issue