diff --git a/src/sigstore_tsp/verify.py b/src/sigstore_tsp/verify.py index cfc8286..ab1a8aa 100644 --- a/src/sigstore_tsp/verify.py +++ b/src/sigstore_tsp/verify.py @@ -59,7 +59,7 @@ def _verify_leaf_certs(tsp_response: TimeStampResponse, opts: VerifyOpts) -> boo critical_eku = False for extension in leaf_certificate.extensions: # EKUOID is the Extended Key Usage OID, per RFC 5280 - if extension.oid() == cryptography.x509.ObjectIdentifier(val="2.5.26.37"): + if extension.oid == cryptography.x509.ObjectIdentifier(val="2.5.26.37"): critical_eku = extension.critical if not critical_eku: