Skip to content

Match indirect CRL entries by issuer and report a validation failure reason - #215

Merged
Xor-el merged 2 commits into
masterfrom
feature/indirect-crl-revocation-checks
Oct 28, 2026
Merged

Xor-el merged 2 commits into
masterfrom
feature/indirect-crl-revocation-checks

Conversation

@Xor-el

@Xor-el Xor-el commented Oct 28, 2026

Copy link
Copy Markdown
Owner

Indirect CRLs may list the same serial number under more than one issuer, so a certificate's entry is now found by issuer as well as serial number; X509Crl.IsRevoked no longer stops at another issuer's entry sharing the serial number.

Revocation status now keeps the CRL reason code apart from whether the certificate is revoked, so a reason value can never be mistaken for a status, and the CRL checks are more defensive about missing revocation dates and undefined reason codes.

Path validation failures now carry a machine-readable reason (expired, revoked, no trust anchor, path too long, and so on) alongside the message, preserved when a failure is re-wrapped against a position in the path.

…reason

Indirect CRLs may list the same serial number under more than one issuer, so a
certificate's entry is now found by issuer as well as serial number; X509Crl.IsRevoked
no longer stops at another issuer's entry sharing the serial number.

Revocation status now keeps the CRL reason code apart from whether the certificate is
revoked, so a reason value can never be mistaken for a status, and the CRL checks are
more defensive about missing revocation dates and undefined reason codes.

Path validation failures now carry a machine-readable reason (expired, revoked, no
trust anchor, path too long, and so on) alongside the message, preserved when a failure
is re-wrapped against a position in the path.
A direct CRL carries no per-entry certificate issuer, so matching on issuer skipped every entry and X509Crl.IsRevoked reported direct-CRL revocations as not revoked. The entry issuer now falls back to the CRL issuer when absent. A regression test covers direct-CRL revocation by serial number.
@Xor-el
Xor-el merged commit 835530b into master Oct 28, 2026
28 checks passed
@Xor-el
Xor-el deleted the feature/indirect-crl-revocation-checks branch October 28, 2026 22:56
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