Class RSACertificateExtensions
Provides extension methods for retrieving CpRSA implementations for the
public and private keys of a CpX509Certificate2.
Inheritance
RSACertificateExtensions
Assembly: CryptoPro.Security.Cryptography.dll
Syntax
public static class RSACertificateExtensions
Methods
CopyWithPrivateKey(CpX509Certificate2, CpRSA)
Declaration
public static CpX509Certificate2 CopyWithPrivateKey(this CpX509Certificate2 certificate, CpRSA privateKey)
Parameters
Returns
Exceptions
GetRSAPrivateKey(CpX509Certificate2)
Gets the RSA private key from the certificate or null if the certificate does not have an RSA private key.
Declaration
public static CpRSA? GetRSAPrivateKey(this CpX509Certificate2 certificate)
Parameters
Returns
GetRSAPublicKey(CpX509Certificate2)
Gets the CpRSA public key from the certificate
or null if the certificate does not have an RSA public key.
Declaration
public static CpRSA GetRSAPublicKey(this CpX509Certificate2 certificate)
Parameters
Returns