Fix import

This commit is contained in:
Fang-Pen Lin
2025-11-12 23:22:55 -08:00
parent 40532290f8
commit 839fe9fa6b
2 changed files with 4 additions and 3 deletions

View File

@@ -183,8 +183,9 @@ def x509_cert_to_dict(cert: x509.Certificate) -> dict:
"key_agreement",
"key_cert_sign",
"crl_sign",
"encipher_only",
"decipher_only",
# TODO: deal with error: "ValueError: encipher_only is undefined unless key_agreement is true"
# "encipher_only",
# "decipher_only",
]
if getattr(ext.value, field) is not None
},