Skip to content

Enhancement certificate validation#413

Draft
StjepanovicSrdjan wants to merge 18 commits into
a-sit-plus:nextfrom
StjepanovicSrdjan:enhancement/certificate-validation
Draft

Enhancement certificate validation#413
StjepanovicSrdjan wants to merge 18 commits into
a-sit-plus:nextfrom
StjepanovicSrdjan:enhancement/certificate-validation

Conversation

@StjepanovicSrdjan

@StjepanovicSrdjan StjepanovicSrdjan commented Feb 24, 2026

Copy link
Copy Markdown
Collaborator

Follow up to #382 - addresses post merge review comments and further api improvements

Update validation API:

  • Introduce AnchoredCertificateChain, containing a CertificateChain and the selected TrustAnchor.
  • Move validate() to AnchoredCertificateChain, making it explicit that validation expects a preselected trust anchor and a fixed chain.
  • Add CertificateChain.buildPathAndValidate(), which uses a ChainConstructor interface to construct all possible AnchoredCertificateChains and validate them. This enables support for cross-signed trust anchors.
  • Update the Validator interface to be stateless by passing the full AnchoredCertificateChain and validation context to Validator.validate(), instead of invoking validators sequentially per certificate.

@StjepanovicSrdjan StjepanovicSrdjan self-assigned this Feb 24, 2026
@StjepanovicSrdjan StjepanovicSrdjan force-pushed the enhancement/certificate-validation branch from 324da67 to 65d9220 Compare March 18, 2026 09:51
@JesusMcCloud JesusMcCloud mentioned this pull request Jun 23, 2026
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