Fixing an issue where openssl can't find the certificates to create PKCS12 files (#408)

This commit is contained in:
kevgliss 2016-08-17 10:33:59 -07:00 committed by GitHub
parent 96674571a5
commit 18b99c0de4
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ def create_keystore(cert, chain, jks_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([key, cert, chain])
f.writelines([key.strip() + "\n", cert.strip() + "\n", chain.strip() + "\n"])
with mktempfile() as p12_tmp:
run_process([