Only load valid certificates

This commit is contained in:
Ruben van Staveren 2022-07-27 13:39:35 +02:00
parent 6dda760ffd
commit 0ec7c8b62c
Signed by: ruben
GPG Key ID: 886F6BECD477A93F

View File

@ -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