Ensuring that the temporary certificate is created correctly (#400)

This commit is contained in:
kevgliss 2016-07-12 18:07:11 -07:00 committed by GitHub
parent f38868a97f
commit 3db669b24d

View File

@ -60,7 +60,7 @@ def create_pkcs12(cert, chain, p12_tmp, key, alias, passphrase):
# Create PKCS12 keystore from private key and public certificate
with mktempfile() as cert_tmp:
with open(cert_tmp, 'w') as f:
f.writelines([cert, chain])
f.writelines([cert.strip() + "\n", chain.strip() + "\n"])
run_process([
"openssl",