From b38750eaa82025aad56f8eca849f47775b2cbc75 Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Thu, 20 Apr 2017 10:09:05 +0200 Subject: [PATCH] Fix CAInstance.import_ra_cert for empty passwords OpenSSL can't cope with empty files, add a newline after each password https://pagure.io/freeipa/issue/6878 Reviewed-By: Jan Cholasta --- ipaserver/install/cainstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipaserver/install/cainstance.py b/ipaserver/install/cainstance.py index b6b915c46..84d60bfdd 100644 --- a/ipaserver/install/cainstance.py +++ b/ipaserver/install/cainstance.py @@ -690,7 +690,7 @@ class CAInstance(DogtagInstance): Used when setting up replication """ - with ipautil.write_tmp_file(password) as f: + with ipautil.write_tmp_file(password + '\n') as f: pwdarg = 'file:{file}'.format(file=f.name) # get the private key from the file ipautil.run([paths.OPENSSL,