@stacksjs/tlsx
Version:
A TLS/HTTPS library with automation.
13 lines (12 loc) • 924 B
TypeScript
import type { CertDetails, CertificateOptions } from './types';
export declare function isCertValidForDomain(certPemOrPath: string, domain: string): boolean;
export declare function readCertFromFile(certPath: string): string;
export declare function parseCertDetails(certPemOrPath: string): CertDetails;
export declare function isCertExpired(certPemOrPath: string): boolean;
export declare function getCertificateFromCertPemOrPath(certPemOrPath: string): pki.Certificate;
export declare function listCertsInDirectory(dirPath?: string): string[];
export declare function makeNumberPositive(hexString: string): string;
export declare function findFoldersWithFile(rootDir: string, fileName: string): string[];
declare function search(dir: string): void;
export declare function debugLog(category: string, message: string, verbose?: boolean): void;
export declare function getPrimaryDomain(options: CertificateOptions): string;