Merge pull request #38949 from clinta/x509-passphrase-bug

Use signing passphrase as public passphrase when generating self-sign…
This commit is contained in:
Mike Place 2017-01-25 13:20:57 -07:00 committed by GitHub
commit d906e8fadb

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: