Tolerate missing CRLs - #642
Merged
Merged
Conversation
Post-handshake CRL verification used X509_V_FLAG_CRL_CHECK_ALL alone, which makes OpenSSL require a CRL for every certificate in the peer's chain. Publishing a CRL is optional for a CA, so this rejected common deployments, most notably an offline root CA that never publishes one and intermediate certificates carrying no CRL distribution point at all. Such a chain failed with "unable to get certificate CRL" as soon as a single CRL was downloaded, while a chain with no CRLs at all was accepted. Keep checking the whole chain, but add a verification callback that reports a certificate with no CRL available as unchecked instead of failing the verification. Revocation is still enforced for every certificate a CRL was obtained for. A peer certificate left unchecked is warned about, a CA certificate is only logged verbosely, since publishing a CRL is optional for a CA and such a warning would repeat on every handshake. The MbedTLS backend already behaved this way, so both backends now agree. Refs #604
michalvasko
approved these changes
Sep 21, 2026
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.
Refs #604 (comment)