Use signing passphrase as public passphrase when generating self-signed certificates

This commit is contained in:
Clint Armstrong 2017-01-25 14:18:47 -05:00
parent f94b8798b6
commit c8697e38a8

View file

@ -1417,6 +1417,9 @@ def create_certificate(
# If neither public_key or csr are included, this cert is self-signed
if 'public_key' not in kwargs and 'csr' not in kwargs:
kwargs['public_key'] = kwargs['signing_private_key']
if 'signing_private_key_passphrase' in kwargs:
kwargs['public_key_passphrase'] = kwargs[
'signing_private_key_passphrase']
csrexts = {}
if 'csr' in kwargs: