@truschery/eimzo
Version:
A lightweight Node.js package for seamless integration with Eimzo, providing easy-to-use functionality for creating digital signatures and managing API keys.
18 lines • 698 B
TypeScript
import { Pfx } from "@truschery/eimzo-api";
export interface CertificateFile {
disk: string;
path: string;
name: string;
}
export type CertificateSignAction = (cert: Certificate, signableContent: string, params?: any) => Promise<string>;
export type CertificateLoadKeyAction = (disk: string, path: string, name: string, alias: string) => Promise<Pfx.LoadKeyResponse>;
export interface Certificate {
file: CertificateFile;
alias: string;
sign: (string: string, params: any) => Promise<string>;
loadKey: () => Promise<Pfx.LoadKeyResponse>;
isExpired: () => boolean;
isValid: () => boolean;
isPhysical: () => boolean;
}
//# sourceMappingURL=certificate.d.ts.map