mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
System: Trust - temporary disable validation of multiple certs in a ca, as discussed in 76228b0a45 (r146422317) with @fichtner
This commit is contained in:
parent
f954d5f889
commit
ebddde95f4
@ -45,9 +45,10 @@ def get_name_hash_file_pattern(filename):
|
||||
x509_item = x509.load_pem_x509_crl(open(filename, 'rb').read())
|
||||
elif fext in ['pem', 'cer', 'crt']:
|
||||
tmp = x509.load_pem_x509_certificates(open(filename, 'rb').read())
|
||||
if len(tmp) > 1:
|
||||
print('Skipping %s as it does not contain exactly one certificate' % filename)
|
||||
return None
|
||||
# XXX: should be enabled after investigating the ca_root_nss situation
|
||||
# if len(tmp) > 1:
|
||||
# print('Skipping %s as it does not contain exactly one certificate' % filename)
|
||||
# return None
|
||||
x509_item = tmp[0]
|
||||
else:
|
||||
# not supported
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user