PKI-Lite - v1.0.5
    Preparing search index...
    • Extracts DER-encoded data from a PEM-formatted string. Supports multiple possible PEM header names for flexibility.

      Parameters

      • pem: string

        The PEM-formatted string

      • name: string | string[]

        The PEM header name(s) to look for (e.g., "CERTIFICATE")

      Returns Uint8Array

      The DER-encoded bytes

      Error if multiple PEM blocks are found or format is invalid