UNPKG

p12-info

Version:
30 lines (29 loc) 740 B
/// <reference types="node" /> declare type AnyObject = { [key: string]: any; }; declare type CertConf = { commonName?: string; organizationName?: string; organizationUnit?: string; locality?: string; stateOrProvinceName?: string; countryName?: string; emailAddress?: string; }; export declare type InfoType = { friendlyName?: string; subject: CertConf; issuer: CertConf; serialNumber: string; version: number; validity: { notBefore: Date; notAfter: Date; }; isValid: Boolean; altNames?: string[]; }; export declare const readRaw: (cert: Buffer, pass: string) => AnyObject; export default function p12info(cert: Buffer, pass: string): InfoType; export {};