Skip to content

Update certificate validation to support certificate chains#192

Open
ashpaw95 wants to merge 1 commit intorussellhaering:mainfrom
ashpaw95:certificate-chain-validation
Open

Update certificate validation to support certificate chains#192
ashpaw95 wants to merge 1 commit intorussellhaering:mainfrom
ashpaw95:certificate-chain-validation

Conversation

@ashpaw95
Copy link

@ashpaw95 ashpaw95 commented Mar 6, 2026

The verifyCertificate function now uses x509.VerifyOptions to perform proper certificate chain validation.
It extracts the leaf certificate and any provided intermediate certificates from the KeyInfo and verifies the chain against a pool of trusted root certificates.

This addresses issues where validation would fail if only the leaf certificate was provided without the rest of the chain.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant