Be a bit more descriptive in debug output for subject/issuer in the x509 material offered to us
This commit is contained in:
parent
ba94ceb9cc
commit
2931f4809e
@ -197,8 +197,11 @@ def find_intermediate_root(x509_objects, root_issuers):
|
|||||||
logging.debug('Known root issuers\n\t%s', '\n\t'.join(root_issuers))
|
logging.debug('Known root issuers\n\t%s', '\n\t'.join(root_issuers))
|
||||||
logging.debug('Excluding issuers because of potential intermediates\n\t%s',
|
logging.debug('Excluding issuers because of potential intermediates\n\t%s',
|
||||||
'\n\t'.join(excluded_issuers))
|
'\n\t'.join(excluded_issuers))
|
||||||
logging.debug('issuers seen in data\n\t%s',
|
logging.debug('Certificates seen in data\n\t%s',
|
||||||
'\n\t'.join([str(x.get_issuer()) for x in x509_objects]))
|
'\n\t'.join([f'Subject: {x.get_subject()},'
|
||||||
|
f' Issuer: {x.get_issuer()}'
|
||||||
|
for x in x509_objects]))
|
||||||
|
|
||||||
return [x for x in x509_objects
|
return [x for x in x509_objects
|
||||||
if str(x.get_issuer()) in root_issuers
|
if str(x.get_issuer()) in root_issuers
|
||||||
and str(x.get_issuer()) not in excluded_issuers]
|
and str(x.get_issuer()) not in excluded_issuers]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user