From a87c6c8220d81aacd63f6856130e1c5b8458c9e8 Mon Sep 17 00:00:00 2001 From: kjwon15 Date: Thu, 27 Dec 2018 17:51:31 +0900 Subject: [PATCH] Fix encoding --- relay/actor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relay/actor.py b/relay/actor.py index eb5c869..6eee902 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') }