Pass text to json.loads for python3.5 compatibility
... | ... | @@ -886,7 +886,7 @@ class UserCertificateAuthority(CertificateAuthority): |
'<I', | ||
read(struct.calcsize('<I')), | ||
) | ||
header = json.loads(read(header_len)) | ||
header = json.loads(read(header_len).decode('utf-8')) | ||
|
||
if header['cipher']['name'] != 'aes256_cbc_pkcs7_hmac_10M_sha256': | ||
raise ValueError('Unrecognised symetric cipher') | ||
private_key = utils.load_privatekey(key_pem) | ||
... | ... |