CertificateManager.CreateJwkJsonFromRsa method

Creates an RSA JWK JSON from a given RSA instance (must contain private key).

public static string CreateJwkJsonFromRsa(RSA rsa, string? keyId = null)
parameter description
rsa The RSA instance with a private key.
keyId Optional key identifier (kid) to set on the JWK.

Return Value

JWK JSON string containing public and private parameters.

See Also