ValidateOcspResponseInput
ValidateOcspResponseInput
Input for validateOcspResponse.
interface ValidateOcspResponseInput {
readonly response: string | Uint8Array | ParsedOcspResponse;
readonly issuerCertificate: OcspCertificateSource;
readonly request?: OcspRequestSource;
readonly responderCertificate?: OcspCertificateSource;
readonly allowChainedResponderCertificate?: boolean;
readonly trustedOcspResponders?: readonly OcspCertificateSource[];
readonly responderRevocationPolicy?: OcspResponderRevocationPolicy;
readonly responderRevocationCrls?: readonly CrlSource[];
readonly responderRevocationCrlMaxAgeMs?: number;
readonly responderRevocationUnrecognizedReasonCode?: UnrecognizedReasonCodePolicy;
readonly at?: Date;
readonly clockSkewMs?: number;
readonly profile?: "rfc6960" | "rfc9919";
}Properties
readonlyresponse:string|Uint8Array|ParsedOcspResponse— The OCSP response to validate.readonlyissuerCertificate:OcspCertificateSource— Certificate of the CA that issued the target certificate.readonlyrequest?:OcspRequestSource— Original request — enables nonce and request-coverage checks.readonlyresponderCertificate?:OcspCertificateSource— Explicit responder certificate — overrides embedded certificate discovery.readonlyallowChainedResponderCertificate?:boolean— Whentrue, allows delegated responder chain validation beyond direct issuance.readonlytrustedOcspResponders?:readonlyOcspCertificateSource[]— Explicitly trusted responder certificates for this issuer's scope (RFC 6960 §4.2.2.2 criterion 1 — local responder configuration).A response signer matching one of these certificates is accepted without the delegated-responder issuance, chain, EKU, and revocation checks. Signature verification and responder-ID binding are still enforced. Also consulted during responder discovery when the response embeds no matching certificate.
readonlyresponderRevocationPolicy?:OcspResponderRevocationPolicy— Revocation policy for delegated responder certificates. Defaults to'honor-nocheck'.readonlyresponderRevocationCrls?:readonlyCrlSource[]— CRLs used as revocation evidence for delegated responder certificates.readonlyresponderRevocationCrlMaxAgeMs?:number— Maximum age of eachresponderRevocationCrlsentry'sthisUpdateatat, in milliseconds. An older CRL yields no evidence. Unbounded by default, in which case a CRL withoutnextUpdateyields no evidence. ThrowsRangeErrorwhen negative or not finite.readonlyresponderRevocationUnrecognizedReasonCode?:UnrecognizedReasonCodePolicy— Treatment of aresponderRevocationCrlsentry that revokes the responder with an unrecognized CRLReason. SeeUnrecognizedReasonCodePolicy.'reject'blocks validation withresponder_revocation_unknown, even when another CRL provides good coverage. Defaults to'revoked'.readonlyat?:Date— Evaluation time for freshness checks and delegated responder chain validation. Defaults tonew Date().readonlyclockSkewMs?:number— Clock-skew tolerance in milliseconds forthisUpdate/nextUpdate/producedAt, including those ofresponderRevocationCrls. It also widensresponderRevocationCrlMaxAgeMs.readonlyprofile?:"rfc6960"|"rfc9919"— OCSP client profile to enforce. Defaults to'rfc6960', which accepts a response withoutnextUpdate(RFC 6960 §4.2.2.1).'rfc9919'applies the RFC 9919 §5 client rule and fails withnext_update_missingwhen any single response omitsnextUpdate.