Skip to content

Fix OCSP->CRL fallback#9834

Open
padelsbach wants to merge 1 commit intowolfSSL:masterfrom
padelsbach:padelsbach/finding-23
Open

Fix OCSP->CRL fallback#9834
padelsbach wants to merge 1 commit intowolfSSL:masterfrom
padelsbach:padelsbach/finding-23

Conversation

@padelsbach
Copy link
Contributor

Description

The CRL fallback code was found to be unreachable in internal.c due to return code checking.

  • Fix OCSP-to-CRL fallback when OCSP returns CERT_UNKNOWN status for both leaf and non-leaf (intermediate) certificate paths in ProcessPeerCerts().
  • Add two TLS-level tests that verify CRL fallback works when OCSP returns CERT_UNKNOWN, covering the leaf path and the non-leaf (OCSP_CHECKALL + CRL_CHECKALL) path
  • Add CERT_UNKNOWN support to the Python OCSP test blob generator and new test cert/CRL artifacts

Testing

Added new tests to exercise the CRL fallback for both intermediate and leaf certs, and generation scripts.

Checklist

  • [x ] added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@padelsbach padelsbach force-pushed the padelsbach/finding-23 branch from 19102a0 to 0c31782 Compare February 26, 2026 00:47
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.

2 participants