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

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

    Parameters

    • pem: string

      RSA public key as PEM

    • Optionalkid: string

      Key identifier (optional)

    Returns JsonWebKeyRSAPublic