Fix encoding problem on actor

This commit is contained in:
Jeong Arm 2018-12-27 09:07:20 +00:00
parent 008f43db2c
commit ef51db3a4a

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