@szegedsw/lib-node
Version:
A little framework published by Szeged Software Zrt. in order to enhance api endpoint security and create reuseable code. Email module, Logging system, and much more. Further improvements are expected.
18 lines • 829 B
TypeScript
/// <reference types="node" />
import { IErrors } from "../functions/try";
export declare const certErrors: IErrors;
/**
* @description Process certificate, split into cert and key.
* @param file file name, file in string or Buffer containing base64 value, encoded in utf8
* @param passphrase provide passphrase for unlocking certificate
* @param clientId optional client ID to be checked against organization and common name
* @param folder optional folder for placing the newly created files
* @throws different errors, please import "certErrors" for full list
*/
export declare function certHandler(file: string | Buffer, passphrase: string, clientId?: string, folder?: string): {
rawFileName: string;
notAfter: Date;
organizationName: any;
commonName: any;
};
//# sourceMappingURL=cert-handler.d.ts.map