Creates a new OCSPRequest instance.
Configuration object
Optional
optionalSignature?: OCSPSignatureOptional signature for authentication
The TBSRequest structure
Optional
optionalOptional signature to authenticate the requestor.
The "to be signed" request containing the certificate status queries.
Gets the PEM header name for this object type. Converts the class name to uppercase for use in PEM encoding.
Gets the PKI type name for this object (typically the class name). Used for PEM headers and debugging output.
Compares this PKI object with another for equality. Two objects are considered equal if their DER encodings are identical.
The other PKI object to compare with
true if the objects are equal, false otherwise
Parses this object as a different PKI type. Useful for converting between related PKI structures.
The target type to parse as
The target type constructor with parsing capabilities
A new instance of the target type
Converts this PKI object to its ASN.1 representation.
The ASN.1 representation of this object
Converts this PKI object to DER (Distinguished Encoding Rules) format.
The DER-encoded bytes of this object
Returns a human-readable string representation of this object. By default, returns the same as toString(), but subclasses can override for more user-friendly output.
A human-readable string representation
Converts this PKI object to PEM (Privacy-Enhanced Mail) format.
A PEM-encoded string with appropriate headers
Returns a string representation of this PKI object. Includes the type name and ASN.1 structure.
A string representation for debugging
Static
forCreates an OCSP request for checking a specific certificate's status.
Configuration object
The certificate to check
The issuer's certificate
A new OCSPRequest instance
Static
fromStatic
from
Represents an OCSP (Online Certificate Status Protocol) request.
An OCSP request is used to check the revocation status of X.509 certificates in real-time. It can request the status of one or more certificates and optionally include a signature to authenticate the requestor.
Asn
Example