UNPKG

electron-root-ssl-pinning

Version:
8 lines (7 loc) 644 B
import Certificate from "pkijs/build/Certificate"; import { ICaStore, CertificateVerifier, VerificationResult, ICertificateVerifyProcRequest } from "./types"; export declare function createChainVerifier(caStore: ICaStore): CertificateVerifier; export declare function createCertificatesChainFromRequest(request: ICertificateVerifyProcRequest): Certificate[]; export declare function verifyChain(chain: Certificate[], caStore: ICaStore): Promise<VerificationResult>; export declare function validateHostname(hostname: string, leafCert?: Certificate): any; export declare function isAllowedDomain(hostname: string, allowedName: string): boolean;