From ef51db3a4a901605f78bb0b25a8186bd4444d12f Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Thu, 27 Dec 2018 09:07:20 +0000 Subject: [PATCH] Fix encoding problem on actor --- relay/actor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relay/actor.py b/relay/actor.py index eb5c869..a8d6613 100644 --- a/relay/actor.py +++ b/relay/actor.py @@ -22,8 +22,8 @@ if "actorKeys" not in DATABASE: pubkey = privkey.publickey() DATABASE["actorKeys"] = { - "publicKey": pubkey.exportKey('PEM'), - "privateKey": privkey.exportKey('PEM') + "publicKey": pubkey.exportKey('PEM').decode('utf-8'), + "privateKey": privkey.exportKey('PEM').decode('utf-8') }