apacuana-sdk-web
Version: 
Apacuana SDK for Web
16 lines (15 loc) • 716 B
TypeScript
import * as pkijs from "pkijs";
export declare function generateKeyPair(): Promise<CryptoKeyPair | undefined>;
export declare function generateCSR(keyPair: any, userEmail: string): Promise<{
    csr: ArrayBuffer;
    subject: pkijs.RelativeDistinguishedNames;
}>;
export declare function transformCSR(csr: any): string;
export declare function encryptCSR(csrBase64: string): {
    csr: string;
};
export declare function exportPrivateKey(key: any): Promise<string | undefined>;
export declare function createPKCS12(privateKey: string, certBase64: string, password: string): Promise<string>;
export declare function createObjectStore(jsonData: any): void;
export * from "./errors.js";
export * from "./indexedDB.js";