Skip to content

Add configurable EKU to X.509 verification policies - #15835

Open
arpitkjaiswal wants to merge 5 commits into
pyca:mainfrom
arpitkjaiswal:codex/configurable-x509-eku
Open

arpitkjaiswal wants to merge 5 commits into
pyca:mainfrom
arpitkjaiswal:codex/configurable-x509-eku

Conversation

@arpitkjaiswal

@arpitkjaiswal arpitkjaiswal commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Addresses the EKU portion of #14765.

Adds PolicyBuilder.extended_key_usage(ObjectIdentifier) so callers can choose the OID checked by X.509 verification. The default clientAuth/serverAuth values remain when the method is omitted. Under the default extension policies, an end-entity certificate may omit its EKU extension; if present, it must include the configured OID. The configured OID is also used by the default CA EKU validator.

Adds coverage for client and server policies, invalid input, and the builder's set-once behavior. Updates the X.509 verification documentation and changelog.

@arpitkjaiswal
arpitkjaiswal force-pushed the codex/configurable-x509-eku branch from 36b208d to 37378e9 Compare October 15, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant