micro509/pem
Canonical PEM boundary surface. Owns the stable micro509/pem entrypoint.
Functions
categorizePemBlocks— Groups PEM blocks by label into well-known PKI categoriescategorizePemBlocksOrThrow— Groups PEM blocks by label into well-known PKI categoriespemDecode— Extracts and base64-decodes the DER content from a PEM string.pemDecodeOrThrow— Throwing core forpemDecode: extracts and base64-decodes thepemEncode— Wraps DER bytes in a PEM envelope with 64-character base64 lines.splitPemBlocks— Finds allBEGIN/END-delimited PEM blocks in a string and returns themsplitPemBlocksOrThrow— Finds allBEGIN/END-delimited PEM blocks in a string and returns
Types
CategorizedPemBlocks— PEM blocks grouped by their label into well-known PKI categories.CategorizePemBlocksResult— Success-or-failure result fromcategorizePemBlocks.PemBlock— A single decoded PEM block with its label, decoded DER bytes, and original PEM text.PemDecodeResult— Success-or-failure result frompemDecode.PemErrorCode— Machine-readable failure reason for the PEM decoders.PemFailure— Structured failure payload for PEM decoding.SplitPemBlocksResult— Success-or-failure result fromsplitPemBlocks.