fix string -> byte conversion on python2 (#472)

This commit is contained in:
Sakti Dwi Cahyono 2016-11-17 07:03:38 +07:00 committed by kevgliss
parent 9ac1756011
commit 520404c215
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ def issue_certificate(csr, options):
builder = builder.serial_number(int(uuid.uuid4())) builder = builder.serial_number(int(uuid.uuid4()))
private_key = serialization.load_pem_private_key( private_key = serialization.load_pem_private_key(
bytes(options['authority'].authority_certificate.private_key, 'utf-8'), bytes(str(options['authority'].authority_certificate.private_key).encode('utf-8')),
password=None, password=None,
backend=default_backend() backend=default_backend()
) )