Only load valid certificates
This commit is contained in:
parent
6dda760ffd
commit
0ec7c8b62c
@ -319,7 +319,8 @@ def load_root_issuers():
|
||||
continue
|
||||
|
||||
root_issuers = {str(root_cert.get_subject()): root_cert
|
||||
for root_cert in root_certs}
|
||||
for root_cert in root_certs
|
||||
if not root_cert.has_expired()}
|
||||
return root_issuers
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user