UNPKG

polyserve

Version:

A simple dev server for bower components

13 lines (12 loc) 433 B
export interface KeyAndCert { key: string; cert: string; } /** * Gets the current TLS certificate (from current directory) * or generates one if needed * @param {string} keyPath path to TLS service key * @param {string} certPath path to TLS certificate * @returns {Promise<{}>} Promise of {key: string, cert: string} */ export declare function getTLSCertificate(keyPath: string, certPath: string): Promise<KeyAndCert>;