mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Trust CAs from PKCS#12 files even if they don't have Friendly Names
Instead of trusting all certificates with friendly names, now all certs without a "u" flag are trusted as root certs.
This commit is contained in:
committed by
Martin Kosek
parent
1e86378d49
commit
ac06a28cf9
@@ -1101,7 +1101,8 @@ class CertDB(object):
|
||||
# We only handle one server cert
|
||||
nickname = server_certs[0][0]
|
||||
|
||||
ca_names = self.find_root_cert_from_pkcs12(pkcs12_fname, pkcs12_pwd_fname)
|
||||
ca_names = [name for name, flags
|
||||
in self.nssdb.list_certs() if 'u' not in flags]
|
||||
if len(ca_names) == 0:
|
||||
raise RuntimeError("Could not find a CA cert in %s" % pkcs12_fname)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user