fix string -> byte conversion on python2 (#472)
This commit is contained in:
parent
9ac1756011
commit
520404c215
@ -82,7 +82,7 @@ def issue_certificate(csr, options):
|
||||
builder = builder.serial_number(int(uuid.uuid4()))
|
||||
|
||||
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,
|
||||
backend=default_backend()
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user