Repository navigation
Match indirect CRL entries by issuer and report a validation failure reason - #215
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.