RSACertificateExtensions Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Provides extension methods for retrieving RSA implementations for the public and private keys of an X509Certificate2.

Namespace:   System.Security.Cryptography.X509Certificates
Assembly:  System.Core (in System.Core.dll)

System.Object
  System.Security.Cryptography.X509Certificates.RSACertificateExtensions

public static class RSACertificateExtensions

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCopyWithPrivateKey(X509Certificate2, RSA)

Combines a private key with the public key of an RSA certificate to generate a new RSA certificate.

System_CAPS_pubmethodSystem_CAPS_staticGetRSAPrivateKey(X509Certificate2)

Gets the RSA private key from the X509Certificate2.

System_CAPS_pubmethodSystem_CAPS_staticGetRSAPublicKey(X509Certificate2)

Gets the RSA public key from the X509Certificate2.

.NET Framework
Available since 4.6

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: