mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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 <jcholast@redhat.com>
This commit is contained in:
committed by
Jan Cholasta
parent
4322b57e31
commit
b38750eaa8
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user