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",