fix(esp_crt_bundle): remove expired DST Root CA X3 from bundle

This commit is contained in:
Mahavir Jain
2024-12-18 09:41:47 +05:30
parent 45513f302b
commit 849ce255aa
5 changed files with 114 additions and 39 deletions

View File

@@ -103,9 +103,9 @@ class CertificateBundle:
crt += strg
if count == 0:
raise InputError('No certificate found')
status('Successfully added %d certificates' % count)
status('No certificate found')
else:
status('Successfully added %d certificates' % count)
def add_from_der(self, crt_str):
self.certificates.append(x509.load_der_x509_certificate(crt_str, default_backend()))