Skip to main content
SecureContextOptions.key - node__tls.d.ts - Node documentation
property SecureContextOptions.key

Usage in Deno

```typescript import { type SecureContextOptions } from "node:node__tls.d.ts"; ```
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: [, 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