HTTP directives
ssl_ocsp directive (HTTP)
Validate client certificate revocation status through OCSP; leaf limits the check to the end-entity certificate. Requires ssl_verify_client on or optional and a resolver for responder hostnames. Distinct from stapling the server certificate response. Context: http, server. Documented default: off. Version: 1.19.0. OSS documentation; verify library and build. Partial configuration for an isolated synthetic lab; not a production policy.
Formal Syntax & Structure
nginx syntaxnginx
ssl_ocsp on | off | leaf;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| mode | on | off | leaf | Select chain validation, disable, or leaf-only validation. |
Working Example
Example Snippetnginx
ssl_verify_client on;ssl_client_certificate certs/ca.pem;ssl_ocsp leaf;