Skip to content

CategorizedPemBlocks ​

CategorizedPemBlocks ​

PEM blocks grouped by their label into well-known PKI categories. Blocks that don't match any known label land in others.

ts
interface CategorizedPemBlocks {
	readonly certificates: readonly PemBlock[];
	readonly certificateRequests: readonly PemBlock[];
	readonly privateKeys: readonly PemBlock[];
	readonly publicKeys: readonly PemBlock[];
	readonly others: readonly PemBlock[];
}

Properties

  • readonly certificates: readonly PemBlock[] — Blocks with label CERTIFICATE.
  • readonly certificateRequests: readonly PemBlock[] — Blocks with label CERTIFICATE REQUEST.
  • readonly privateKeys: readonly PemBlock[] — Blocks with label PRIVATE KEY, RSA PRIVATE KEY, or EC PRIVATE KEY.
  • readonly publicKeys: readonly PemBlock[] — Blocks with label PUBLIC KEY.
  • readonly others: readonly PemBlock[] — Blocks whose label doesn't match any of the above categories.

Released under the MIT License.