VerifyCertificateChainInput
VerifyCertificateChainInput
Input for verifyCertificateChain. Combines path-building, validation, and identity options.
ts
interface VerifyCertificateChainInput extends PolicyValidationInput, InitialNameConstraintsInput {
readonly distrustedSpkiSha256?: readonly string[];
readonly policy?: PolicyValidationInput;
readonly nameConstraints?: InitialNameConstraintsInput;
readonly leaf: CertificateSource;
readonly intermediates?: readonly CertificateSource[];
readonly roots: readonly CertificateSource[];
readonly trustAnchors?: readonly TrustAnchor[];
readonly at?: Date;
readonly maxPathBuildingChecks?: number;
readonly purpose?: VerifyPurpose;
readonly serviceIdentity?: ServiceIdentityInput;
readonly allowSelfSignedLeaf?: boolean;
readonly rejectOversizedDisplayText?: boolean;
readonly revocation?: ChainRevocationInput;
}Properties
readonlydistrustedSpkiSha256?:readonlystring``[]— SHA-256 hashes of complete DER SubjectPublicKeyInfo values to distrust. Supply 64 hexadecimal characters per hash (case-insensitive, no separators). Defaults to an empty list. Malformed entries throw RangeError. Applies to every path certificate and bare trust anchor, before revocation. A match returnspublic_key_distrusted, with the hash indetails.actual.readonlypolicy?:PolicyValidationInput— Nested policy validation overrides.readonlynameConstraints?:InitialNameConstraintsInput— Nested name constraint overrides.readonlyleaf:CertificateSource— End-entity certificate to verify.readonlyintermediates?:readonlyCertificateSource[]— Intermediate CA certificates available for path building.readonlyroots:readonlyCertificateSource[]— Trusted root CA certificates.readonlytrustAnchors?:readonlyTrustAnchor[]— Bare trust anchors to try when no root certificate matches.readonlyat?:Date— Validation time. Defaults tonew Date().readonlymaxPathBuildingChecks?:number— Maximum issuer candidates and trust anchors the path search may try before it stops withpath_building_limit_exceeded. Defaults to100_000.readonlypurpose?:VerifyPurpose— Leaf purpose constraint to enforce during validation.readonlyserviceIdentity?:ServiceIdentityInput— DNS/IP/URI/SRV identity to match against the leaf's SAN.readonlyallowSelfSignedLeaf?:boolean— Whentrue, allows a self-signed leaf. Defaults tofalse.readonlyrejectOversizedDisplayText?:boolean— Whentrue, rejects a certificate whose user noticeexplicitTextornoticeReforganization exceeds 200 characters withdisplay_text_oversized. Defaults tofalse, and the parsed certificate reports such a value asoversizedExplicitTextoroversizedOrganization.readonlyrevocation?:ChainRevocationInput— Optional revocation checking.