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

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

    Parameters

    • pem: string

      Elliptic curve public key as PEM

    • Optionalkid: string

      Key identifier (optional)

    Returns JsonWebKeyECPublic