Adds a certificate to include in the response (for chain validation).
The certificate to include
This builder for chaining
Adds a single certificate response.
Certificate response details
This builder for chaining
Adds a certificate status response.
The issuer certificate (when using Certificate) or CertID directly
The subject certificate (when using Certificate) or status (when using CertID)
OptionalstatusOrOptions: The status (when using Certificate) or options (when using CertID)
Optionaloptions: {Optional parameters (only when using Certificate)
This builder for chaining
Adds a response extension (applies to the entire response).
The extension to add
This builder for chaining
Builds and signs the OCSP response.
Promise resolving to the signed OCSPResponse
Sets the signature algorithm.
Algorithm parameters or SignatureAlgorithmIdentifier
This builder for chaining
Sets the private key for signing the response.
The responder's private key
This builder for chaining
Sets the producedAt time (when this response was generated). Defaults to current time if not set.
The production date
This builder for chaining
Sets the responder ID using a key hash (byKey).
SHA-1 hash of the responder's public key
This builder for chaining
Sets the responder ID using a name (byName).
The responder's distinguished name
This builder for chaining
Sets the responder ID from a certificate's subject.
The responder's certificate
This builder for chaining
Sets the overall response status.
The OCSP response status
This builder for chaining
Builder class for creating OCSP Responses.
Provides a fluent API for constructing OCSP responses with multiple certificate statuses, responder identification, extensions, and signatures.
Example