Fix encoding

This commit is contained in:
kjwon15 2018-12-27 17:51:31 +09:00
parent 9dc8743fe3
commit a87c6c8220

View file

@ -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')
}