Skip to content

fix(validate): reject unsupported critical extensions per RFC 5280#242

Open
sumleo wants to merge 1 commit intorusticata:masterfrom
sumleo:fix/validator-critical-extensions
Open

fix(validate): reject unsupported critical extensions per RFC 5280#242
sumleo wants to merge 1 commit intorusticata:masterfrom
sumleo:fix/validator-critical-extensions

Conversation

@sumleo
Copy link

@sumleo sumleo commented Feb 15, 2026

Summary

  • The structure validator only warned about unsupported extensions without distinguishing between critical and non-critical ones
  • Per RFC 5280 Section 4.2: "If a certificate contains a critical extension that is not recognized by the implementation, then the implementation MUST reject the certificate"
  • Now reports unsupported critical extensions as errors (causing validation failure) while keeping non-critical unsupported extensions as warnings

Test plan

  • Full test suite passes with cargo test --all-features

The structure validator only warned about unsupported extensions without
distinguishing between critical and non-critical ones. Per RFC 5280
Section 4.2, a certificate containing a critical extension that is not
recognized MUST be rejected. Now reports unsupported critical extensions
as errors (causing validation failure) while keeping non-critical ones
as warnings.
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