Skip to content

Check Basic Constraints and Key Usage extensions in X.509 paths - #832

Open
MasterKale wants to merge 9 commits into
masterfrom
fix/830-x509-basicconstraints-keyusages
Open

MasterKale wants to merge 9 commits into
masterfrom
fix/830-x509-basicconstraints-keyusages

Conversation

@MasterKale

@MasterKale MasterKale commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

This PR adds validation of the Basic Constraints and Key Usage extensions in X.509 certificate path validation. Once a valid path is constructed, the leaf cert will be checked to make sure it's not a CA certificate and can't sign other certs; inversely, remaining certs in the chain will check that they're CA certificates, that pathLen is valid when present, and that the keyCertSign bit is set in Key Usage when this extension is present.

Fixes #830.

@MasterKale MasterKale added this to the v14.1.1 milestone Nov 21, 2026
@MasterKale MasterKale added the package:server @simplewebauthn/server label Nov 21, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package:server @simplewebauthn/server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Evaluate basicConstraints and keyUsages extensions when validating X.509 chains

1 participant