Skip to content

Fix(CertUtils): Skip The Revocation Check When No CRL Or OCSP Source Is Available - #92

Open
misiektoja wants to merge 4 commits into
siemens:mainfrom
misiektoja:fix/rr-revocation-check-skip
Open

misiektoja wants to merge 4 commits into
siemens:mainfrom
misiektoja:fix/rr-revocation-check-skip

Conversation

@misiektoja

@misiektoja misiektoja commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Description

Validate If Certificate Is Revoked now returns with a log message when allow_no_crl_urls=True, no URL or CRL file is passed, the certificate has no CRL distribution point and OCSP cannot be used, because the certificate has no OCSP URL or no ca_cert is given. Without allow_no_crl_urls it still raises. The three accepted revocation and revive tests pass allow_no_crl_urls=True. The keyword documentation describes the skip and its examples use the real ca_cert argument.

Motivation and Context

RFC 9483 Section 4.3.4 says a CA "may include" CRL distribution points or AIA extensions. The tests failed after a correct rp because the follow-up check had no source to query.

How Has This Been Tested?

New unit tests cover a certificate without OCSP and CRL sources with and without allow_no_crl_urls and check that no request is sent. The case with allow_no_crl_urls=True fails on main and passes with this change. Other unit test results match main. Against the mock CA, which adds both sources, the revocation tests pass as on main. robot --dryrun, robocop check and codespell pass. Python 3.15 with pytest 9.2 and Robot Framework 7.5.

…the Validate If Certificate Is Revoked docstring
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