System.Security.Cryptography.X509Certificates.RSACertificateExtensions public static class RSACertificateExtensions Documentation Code public static RSA GetRSAPrivateKey(this X509Certificate2 certificate) public static RSA GetRSAPublicKey(this X509Certificate2 certificate)