Converts an elliptic curve private key as PEM to JSON Web Key (JWK) object.

  • Converts an elliptic curve private key as PEM to JSON Web Key (JWK) object.

    Parameters

    • pem: string

      Elliptic curve private key as PEM

    • Optionalkid: string

      Key identifier (optional)

    Returns JsonWebKeyECPrivate