Skip to content

feat(tls): OCSP stapling / cert-status support #123

@jonwiggins

Description

@jonwiggins

Summary

urlx does not support OCSP stapling (certificate status checking). The curl test harness reports cert-status: OFF via curlinfo, which may cause some tests to be skipped.

What needs to be done

  • Implement OCSP stapling support in the TLS layer (rustls supports this via CertificateTransparencyPolicy and server certificate verification)
  • Support the --cert-status CLI flag (request OCSP stapling from the server, fail if the server doesn't provide a valid stapled response)
  • Report cert-status as enabled in curlinfo/feature detection

curl behavior

When --cert-status is used, curl requests the TLS server to include an OCSP response in the handshake. If the server doesn't staple a valid OCSP response, curl fails with error 91 (CURLE_SSL_INVALIDCERTSTATUS).

Context

This was identified while analyzing the 93 skipped tests in the curl test suite (tests 1-1400). Implementing this feature could unskip tests that are currently disabled due to cert-status: OFF in the curlinfo feature detection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    optioAssigned to Optio AI agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions