mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
install: fix external CA cert validation
The code which loads the external CA cert chain was never executed because of an incorrect usage of an iterator (iterating over it twice). https://fedorahosted.org/freeipa/ticket/6166 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
@@ -1038,7 +1038,7 @@ def load_external_cert(files, subject_base):
|
||||
raise ScriptError(
|
||||
"IPA CA certificate not found in %s" % (", ".join(files)))
|
||||
|
||||
trust_chain = reversed(nssdb.get_trust_chain(ca_nickname))
|
||||
trust_chain = list(reversed(nssdb.get_trust_chain(ca_nickname)))
|
||||
ca_cert_chain = []
|
||||
for nickname in trust_chain:
|
||||
cert, subject, issuer = cache[nickname]
|
||||
|
||||
Reference in New Issue
Block a user