Skip to content

PemBlock

A single decoded PEM block with its label, decoded DER bytes, and original PEM text.

ts
interface PemBlock {
	readonly label: string;
	readonly bytes: Uint8Array;
	readonly pem: string;
}

Properties

  • readonly label: string — RFC 7468 label between the BEGIN / END markers (e.g. "CERTIFICATE").
  • readonly bytes: Uint8Array — Decoded DER content of this block.
  • readonly pem: string — The original PEM text including BEGIN/END lines.

Released under the MIT License.