VerifyFailureDetails
VerifyFailureDetails
Diagnostic context attached to every VerifyChainFailure. All fields are optional; presence depends on the error code.
ts
interface VerifyFailureDetails {
readonly subjectCommonName?: string;
readonly issuerCommonName?: string;
readonly expected?: string;
readonly actual?: string;
readonly chainCommonNames?: readonly string[];
readonly presentedIdentifierTypes?: readonly ("dns" | "uri" | "srv")[];
readonly commonNameFallbackReason?: "disabled" | "suppressed_by_presented_identifier" | "common_name_missing" | "common_name_mismatch";
readonly userNoticeField?: "explicitText" | "noticeRefOrganization";
readonly source?: VerifyFailureSource;
}Properties
readonlysubjectCommonName?:string— CN of the certificate that triggered the failure.readonlyissuerCommonName?:string— CN of the issuer of the offending certificate.readonlyexpected?:string— The value the verifier expected (e.g. a validity window bound or SKI).readonlyactual?:string— The value actually found.readonlychainCommonNames?:readonlystring``[]— CNs of every certificate in the chain, leaf-first. Present onno_trusted_root.readonlypresentedIdentifierTypes?:readonly("dns"|"uri"|"srv")[]— SAN identifier types the leaf actually presents. Set on identity-match failures.readonlycommonNameFallbackReason?:"disabled"|"suppressed_by_presented_identifier"|"common_name_missing"|"common_name_mismatch"— Why the CN-fallback path was not taken. Set oncommon_name_fallback_suppressed.readonlyuserNoticeField?:"explicitText"|"noticeRefOrganization"— The user notice DisplayText that exceeds 200 characters. Set ondisplay_text_oversized.readonlysource?:VerifyFailureSource— Theintermediatesorrootsentry that failed to load, which has no chain index.