From 18b99c0de4d5ba6e311ecbc725f30d63790dc2e3 Mon Sep 17 00:00:00 2001 From: kevgliss Date: Wed, 17 Aug 2016 10:33:59 -0700 Subject: [PATCH] Fixing an issue where openssl can't find the certificates to create PKCS12 files (#408) --- lemur/plugins/lemur_java/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemur/plugins/lemur_java/plugin.py b/lemur/plugins/lemur_java/plugin.py index 0501c3ed..e3304d21 100644 --- a/lemur/plugins/lemur_java/plugin.py +++ b/lemur/plugins/lemur_java/plugin.py @@ -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([