From 54d8397334344221e7aa3a5c5e37068c4e70959b Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Mon, 4 Jun 2018 11:43:41 -0700 Subject: [PATCH] Read bytes for now for compatibility --- certbot/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot/client.py b/certbot/client.py index cc2f31d56..c015cd175 100644 --- a/certbot/client.py +++ b/certbot/client.py @@ -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]