Read bytes for now for compatibility

This commit is contained in:
Brad Warren 2018-06-04 11:43:41 -07:00
parent f19ebab441
commit 54d8397334

View file

@ -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]