UNPKG

snowflake-sdk

Version:
12 lines (11 loc) 855 B
import { DetailedPeerCertificate } from 'tls'; import rfc5280 from 'asn1.js-rfc5280'; export declare function getCertificateDebugName(certificate: DetailedPeerCertificate): string; export declare const getCertificateCrlUrls: (certificateName: string, decodedCertificate: rfc5280.CertificateDecoded) => [string, ...string[]] | null; /** * See Short-lived Subscriber Certificate section\ * https://cabforum.org/working-groups/server/baseline-requirements/requirements/ */ export declare function isShortLivedCertificate(decodedCertificate: rfc5280.CertificateDecoded): boolean; export declare function isCertificateRevoked(decodedCertificate: rfc5280.CertificateDecoded, crl: rfc5280.CertificateListDecoded): boolean; export declare function isIssuingDistributionPointExtensionValid(crl: rfc5280.CertificateListDecoded, expectedCrlUrl: string): boolean;