CertificateManager.CreateSelfSignedCertificateFromJwk method

Creates a self-signed X509 certificate from the provided RSA JWK JSON string.

public static X509Certificate2 CreateSelfSignedCertificateFromJwk(string jwkJson, 
    string subjectName = "CN=client-jwt")
parameter description
jwkJson The JSON string representing the RSA JWK.
subjectName The subject name for the certificate.

Return Value

A self-signed X509Certificate2 instance.

Exceptions

exception condition
ArgumentException Thrown when the JWK JSON is invalid.
NotSupportedException  

See Also