Skip to main content
Version: v0.0.3

Type Alias: PemInput

PemInput = string | Buffer | (string | Buffer)[]

A PEM-encoded credential (certificate, key, or CA), matching Node's tls.connect/tls.createServer input shape, a single PEM string/Buffer, or an array of them (chain / multiple trust anchors).

Example

import { readFileSync } from 'node:fs';
const ca: PemInput = readFileSync('ca.pem');