mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Read passwords from stdin when importing PKCS#12 files with pk12util.
This works around pk12util refusing to use empty password files, which prevents the use of PKCS#12 files with empty password. https://fedorahosted.org/freeipa/ticket/3897
This commit is contained in:
committed by
Petr Viktorin
parent
46b3588112
commit
c123264ac7
@@ -137,9 +137,8 @@ class ReplicaPrepare(admintool.AdminTool):
|
||||
"could not find directory instance: %s" % config_dir)
|
||||
|
||||
def check_pkcs12(self, pkcs12_file, pkcs12_pin):
|
||||
pin_file = ipautil.write_tmp_file(pkcs12_pin)
|
||||
installutils.check_pkcs12(
|
||||
pkcs12_info=(pkcs12_file, pin_file.name),
|
||||
pkcs12_info=(pkcs12_file, pkcs12_pin),
|
||||
ca_file='/etc/ipa/ca.crt',
|
||||
hostname=self.replica_fqdn)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user