UNPKG

ts-spiffe

Version:
27 lines 1.03 kB
import * as x509 from "@peculiar/x509"; import { Certificate } from "pkijs"; export declare class CertificateUtils { static getCertNotBefore(): Date; static getCertNotAfter(notBefore: Date): Date; static getCANotAfter(notBefore: Date): Date; static makeNumberPositive(hexString: string): string; static randomSerialNumber(): string; static extractBase64FromPEM(pem: string): string[]; static parseX509DER(x509svid: string): Promise<Certificate[] | undefined>; static createRootCA(spiffeId: string): Promise<{ certificate: x509.X509Certificate; publicKey: any; privateKey: any; notBefore: Date; notAfter: Date; }>; static createCertificate(name: string, spiffeId: string, caCert: any, caPrivateKey: any): Promise<{ certificate: x509.X509Certificate; publicKey: any; privateKey: any; notBefore: Date; notAfter: Date; }>; private static generateKeyPair; } //# sourceMappingURL=CertificateUtils.d.ts.map