We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58e7da1 commit 607fab9Copy full SHA for 607fab9
src/python_testing/TC_DA_1_2.py
@@ -383,7 +383,12 @@ async def test_TC_DA_1_2(self):
383
if '.der' not in filename:
384
continue
385
with open(os.path.join(cd_cert_dir, filename), 'rb') as f:
386
- cert = x509.load_der_x509_certificate(f.read())
+ logging.info(f'Parsing CD signing certificate file: {filename}')
387
+ try:
388
+ cert = x509.load_der_x509_certificate(f.read())
389
+ except ValueError:
390
+ logging.info(f'File is not a valid certificate, skipping')
391
+ pass
392
pub = cert.public_key()
393
ski = x509.SubjectKeyIdentifier.from_public_key(pub).digest
394
certs[ski] = pub
0 commit comments