Fix encoding

This commit is contained in:
kjwon15 2018-12-27 17:51:31 +09:00
parent 9dc8743fe3
commit a87c6c8220
1 changed files with 2 additions and 2 deletions

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