1
0

fix 3262: protobuf SerializeToString() returns bytes..

This commit is contained in:
ThomasV
2017-11-13 11:10:51 +01:00
parent e05854f004
commit 60e0b43b81
2 changed files with 2 additions and 2 deletions

View File

@@ -411,7 +411,7 @@ def sign_request_with_x509(pr, key_path, cert_path):
s = f.read()
bList = pem.dePemList(s, "CERTIFICATE")
certificates = pb2.X509Certificates()
certificates.certificate.extend(map(str, bList))
certificates.certificate.extend(map(bytes, bList))
pr.pki_type = 'x509+sha256'
pr.pki_data = certificates.SerializeToString()
msgBytes = bytearray(pr.SerializeToString())