Based on configuration of the backend modules, an Online Certificate Status Protocol response is returned for the given certificate as per RFC6960.
Respond with the revocation status of a certificate.
Based on configuration of the backend modules, an Online Certificate Status Protocol response is returned for the given certificate as per RFC6960.
The
mod_ocsp
module is a
frontend module
and will not do anything useful until
mod_ocsp
has been combined with one or
more
backend modules
listed below. The
mod_ocsp
module uses the following hook to check the certificate status against
the certificate revocation list, and suitable
backend modules
must be configured to implement each hook as needed.
All frontend modules run within a standard Apache httpd request, and standard httpd functionality applies in all cases.
This hook returns CA certificates for the given CA.
mod_ca_engine | Returns CA certificates that would sign certificate sign requests by an HSM such as a smartcard. |
mod_ca_simple | Returns CA certificates that would sign certificate sign requests by a certificate and key specified on disk. |
This hook returns the certificate status for the given certificate.
mod_ca_crl | Check the certificate status against the certificate sign request from disk. |
The simplest case: return the certificate revocation list to anybody who wants one.
# return this crl
CACRLCertificateRevocationList /etc/pki/tls/ca-crl.pem
# frontend configuration:
SetHandler ocsp
OcspSigningCertificate /etc/pki/tls/ocsp.cert
OcspSigningKey /etc/pki/tls/ocsp.key
]]>
The following parameters to the SetHandler directive are supported.
After calling the certificate status hook return the OCSP response.
Description | Set to the name of the signing certificate. |
Syntax |
Ocsp
|
Default |
none
|
Context | server config, virtual host, directory, .htaccess |
Status | Frontend |
Module | mod_ocsp |
Compatibility | Introduced in mod_ocsp 0.2.0 and works with Apache HTTP Server 2.4.0 and later |
Set to the name of the signing certificate.
Description | Set to the name of the signing key. |
Syntax |
Ocsp
|
Default |
none
|
Context | server config, virtual host, directory, .htaccess |
Status | Frontend |
Module | mod_ocsp |
Compatibility | Introduced in mod_ocsp 0.2.0 and works with Apache HTTP Server 2.4.0 and later |
Set to the name of the signing key.
Description | Set to the name of a file containing other certificates to add to the response. |
Syntax |
Ocsp
|
Default |
none
|
Context | server config, virtual host, directory, .htaccess |
Status | Frontend |
Module | mod_ocsp |
Compatibility | Introduced in mod_ocsp 0.2.0 and works with Apache HTTP Server 2.4.0 and later |
Set to the name of a file containing other certificates to add to the response.
Description | Set to the maximum size of the OCSP request from the client. |
Syntax |
Ocsp
|
Default |
Ocsp
|
Context | server config, virtual host, directory, .htaccess |
Status | Frontend |
Module | mod_scep |
Compatibility | Introduced in mod_ocsp 0.2.0 and works with Apache HTTP Server 2.4.0 and later |
Set to the maximum size of the OCSP request from the client. This value cannot be smaller than 4096 bytes.
Description | Set the URL location of the WADL returned by the OPTIONS method. |
Syntax |
Ocsp
|
Default |
Ocsp
|
Context | server config, virtual host, directory, .htaccess |
Status | Frontend |
Module | mod_ocsp |
Compatibility | Introduced in mod_ocsp 0.2.0 and works with Apache HTTP Server 2.4.0 and later |
Set the URL location of the WADL returned by the OPTIONS method.
Description | Set to the number of seconds until the next update. |
Syntax |
Ocsp
|
Default |
Ocsp
|
Context | server config, virtual host, directory, .htaccess |
Status | Frontend |
Module | mod_ocsp |
Compatibility | Introduced in mod_ocsp 0.2.0 and works with Apache HTTP Server 2.4.0 and later |
Set to the number of seconds until the next update. Defaults to zero (to disable).
Description | Set to 'on' to suppress the sending of certificates in the response. |
Syntax |
Ocsp
|
Default |
Ocsp
|
Context | server config, virtual host, directory, .htaccess |
Status | Frontend |
Module | mod_ocsp |
Compatibility | Introduced in mod_ocsp 0.2.0 and works with Apache HTTP Server 2.4.0 and later |
Set to 'on' to suppress the sending of certificates in the response. Defaults to 'off'.
Description | Set to 'on' to identify the signer certificate by key ID. |
Syntax |
Ocsp
|
Default |
Ocsp
|
Context | server config, virtual host, directory, .htaccess |
Status | Frontend |
Module | mod_ocsp |
Compatibility | Introduced in mod_ocsp 0.2.0 and works with Apache HTTP Server 2.4.0 and later |
Set to 'on' to identify the signer certificate by key ID. Defaults to 'off' for subject name.
Description | Mark all certificates as revoked, giving this reason. |
Syntax |
Ocsp
|
Default |
none
|
Context | server config, virtual host, directory, .htaccess |
Status | Frontend |
Module | mod_ocsp |
Compatibility | Introduced in mod_ocsp 0.2.0 and works with Apache HTTP Server 2.4.0 and later |
Mark all certificates as revoked, giving this reason.
Reasons must be one of:
Description | If all certificates are revoked, add this revocation time. |
Syntax |
Ocsp
|
Default |
None
|
Context | server config, virtual host, directory, .htaccess |
Status | Frontend |
Module | mod_ocsp |
Compatibility | Introduced in mod_ocsp 0.2.0 and works with Apache HTTP Server 2.4.0 and later |
If all certificates are revoked, add this revocation time, formatted as per http://tools.ietf.org/html/rfc2459#section-4.1.2.5.2 (YYYYMMDDHHMMSSZ)
Description | If all certificates are revoked, add this invalidity date. |
Syntax |
Ocsp
|
Default |
None
|
Context | server config, virtual host, directory, .htaccess |
Status | Frontend |
Module | mod_ocsp |
Compatibility | Introduced in mod_ocsp 0.2.0 and works with Apache HTTP Server 2.4.0 and later |
If all certificates are revoked, add this invalidity date, formatted as per http://tools.ietf.org/html/rfc2459#section-4.1.2.5.2 (YYYYMMDDHHMMSSZ)
Description | If all certificates are revoked, add this hold instruction. |
Syntax |
Ocsp
|
Default |
none
|
Context | server config, virtual host, directory, .htaccess |
Status | Frontend |
Module | mod_ocsp |
Compatibility | Introduced in mod_ocsp 0.2.0 and works with Apache HTTP Server 2.4.0 and later |
If all certificates are revoked, add this hold instruction, formatted as an OID.
Instructions must be one of:
Description | The max-age of the certificate revocation list will be divided by this factor. |
Syntax |
Ocsp
|
Default |
Ocsp
|
Context | server config, virtual host, directory, .htaccess |
Status | Frontend |
Module | mod_ocsp |
Compatibility | Introduced in mod_ocsp 0.2.0 and works with Apache HTTP Server 2.4.0 and later |
The age of the certificate revocation list will be divided by this factor when added as a max-age, set to zero to disable. Defaults to "2". An optional maximum value can be specified, defaults to one day.