1
0
mirror of https://github.com/wolfSSL/wolfssl.git synced 2026-10-24 04:09:07 +03:00
Files
wolfssl/certs
Tobias Frauenschläger faec5fd3d3 Check the CRL when a peer certificate names no OCSP responder
A client with both OCSP and CRL enabled skipped the CRL check for a
certificate carrying no OCSP responder URL. OcspNoUrlPolicy() maps
OCSP_NO_URL onto 0 for the historical soft-fail default, which is
indistinguishable from a responder answering CERT_GOOD, so the CRL fallback
never ran.

Decide whether the CRL check is still needed from the raw OCSP result, before
the no-URL policy collapses it, for both the leaf and the chain.

A chain certificate whose OCSP lookup was handed to a staple is the one case
where that result is not in yet, since the CertificateStatus entry answering
it has not been parsed. Take the CRL check there anyway, while the
DecodedCert is alive, but keep only CRL_CERT_REVOKED from it: an inconclusive
CRL_MISSING would otherwise reject a certificate whose valid staple is still
on its way, which no CRL ever said anything about.

The tests are gated out under WOLFSSL_CRL_ALLOW_MISSING_CDP, where a
certificate naming no distribution point has its CRL check skipped by design
and the in-tree test certificates name none.

test_ocsp_checkall_staple_crl_missing covers both directions with a fully
stapled chain under OCSP and CRL CHECKALL: an empty CRL store no longer
rejects it, and certs/ocsp/root-ca-crl-revoked.pem, which gencrls.sh now
produces beside the other OCSP CRLs, still does.
2026-09-19 16:36:24 +02:00
..
2026-06-26 14:44:16 -06:00
2026-06-26 14:44:16 -06:00
2026-06-26 14:44:16 -06:00
2026-06-26 14:44:16 -06:00
2026-06-26 14:44:16 -06:00
2026-06-26 14:44:16 -06:00
2026-06-26 14:44:16 -06:00
2026-07-08 09:33:47 +10:00
2023-08-11 11:29:15 +09:00
2026-06-26 14:44:16 -06:00
2026-06-26 14:44:16 -06:00
2026-06-26 14:44:16 -06:00
2026-06-26 14:44:16 -06:00
2015-09-07 09:51:21 +02:00
2020-12-17 14:26:49 +01:00
2016-12-28 14:45:29 -07:00
2012-05-02 10:30:15 -07:00
2014-08-29 14:25:58 -07:00
2011-02-05 11:14:47 -08:00
2011-02-05 11:14:47 -08:00
2011-12-01 13:10:01 -08:00
2015-09-07 09:51:21 +02:00
2017-06-14 09:44:26 +10:00
2019-12-06 14:27:01 -07:00
2024-11-07 07:40:02 -06:00
2026-07-08 09:33:47 +10:00
2026-07-08 09:33:47 +10:00
2026-07-08 09:33:47 +10:00
2026-07-08 09:33:47 +10:00
2026-07-08 09:33:47 +10:00
2026-07-08 09:33:47 +10:00
2021-10-04 11:05:58 -05:00