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

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

    Parameters

    • pem: string

      RSA private key as PEM

    • Optionalkid: string

      Key identifier (optional)

    Returns JsonWebKeyRSAPrivate