CreateOcspResponseInput
Input for createOcspResponse.
ts
interface CreateOcspResponseInput {
readonly signerPrivateKey: CryptoKey;
readonly signerCertificate: OcspCertificateSource;
readonly responses: readonly CreateOcspSingleResponseInput[];
readonly producedAt?: Date;
readonly nonce?: Uint8Array;
readonly hashAlgorithm?: OcspHashAlgorithm;
readonly includedCertificates?: readonly OcspCertificateSource[];
}Properties
readonlysignerPrivateKey:CryptoKey— Private key used to sign the response. Algorithm is inferred from the key.readonlysignerCertificate:OcspCertificateSource— Certificate of the OCSP responder — used to build the responder ID (by key hash).readonlyresponses:readonlyCreateOcspSingleResponseInput[]— Per-certificate status entries to include in the BasicOCSPResponse.readonlyproducedAt?:Date— Timestamp for theproducedAtfield. Defaults tonew Date().readonlynonce?:Uint8Array— Nonce to echo back for replay protection.readonlyhashAlgorithm?:OcspHashAlgorithm— Hash algorithm for CertID computation. Defaults to'SHA-1'.readonlyincludedCertificates?:readonlyOcspCertificateSource[]— Extra certificates to embed in the response (e.g. the responder's issuer chain).