UNPKG

561 BTypeScriptView Raw
1/**
2 * Copyright 2018 Google LLC
3 *
4 * Distributed under MIT license.
5 * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
6 */
7/**
8 * Convert a .p12 file to .pem string
9 * @param filename The .p12 key filename.
10 * @param callback The callback function.
11 * @return A promise that resolves with the .pem private key
12 * if no callback provided.
13 */
14export declare function getPem(filename: string): Promise<string>;
15export declare function getPem(filename: string, callback: (err: Error | null, pem: string | null) => void): void;