mimekit-ts - v1.0.0
    Preparing search index...

    Function loadPrivateKeyFromPem

    • Load an RSA or Ed25519 private key from PEM text.

      Supports PKCS#1 (RSA PRIVATE KEY), PKCS#8 (PRIVATE KEY, RSA or Ed25519). Throws if no private key is found (C#: FormatException).

      Parameters

      • text: string

      Returns AsymmetricKey