From 3db669b24d67a6dd8a5d32da13558029a05dbacc Mon Sep 17 00:00:00 2001 From: kevgliss Date: Tue, 12 Jul 2016 18:07:11 -0700 Subject: [PATCH] Ensuring that the temporary certificate is created correctly (#400) --- lemur/plugins/lemur_openssl/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemur/plugins/lemur_openssl/plugin.py b/lemur/plugins/lemur_openssl/plugin.py index f0b32476..2bf22087 100644 --- a/lemur/plugins/lemur_openssl/plugin.py +++ b/lemur/plugins/lemur_openssl/plugin.py @@ -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",