SecureContextOptions.key - Node documentation
property SecureContextOptions.key

Usage in Deno

import { type SecureContextOptions } from "node:tls";

Private keys in PEM format. PEM allows the option of private keys being encrypted. Encrypted keys will be decrypted with options.passphrase. Multiple keys using different algorithms can be provided either as an array of unencrypted key strings or buffers, or an array of objects in the form {pem: <string|buffer>[, passphrase: ]}. The object form can only occur in an array. object.passphrase is optional. Encrypted keys will be decrypted with object.passphrase if provided, or options.passphrase if it is not.

Type

string
| Buffer
| Array<
string
| Buffer
| KeyObject
>

| undefined