( filePath: string )
| 12 | // `WEB_BUNDLE_SIGNING_PASSPHRASE` environment variable, or, if not set, prompts |
| 13 | // the user for the passphrase. |
| 14 | export async function parseMaybeEncryptedKeyFromFile( |
| 15 | filePath: string |
| 16 | ): Promise<KeyObject> { |
| 17 | return parseMaybeEncryptedKey( |
| 18 | fs.readFileSync(filePath), |
| 19 | path.basename(filePath) |
| 20 | ); |
| 21 | } |
| 22 | |
| 23 | // Exported for testing. |
| 24 | export async function parseMaybeEncryptedKey( |
no test coverage detected