Mentalis.org Security Library documentation

Certificate.PrivateKey Property

Gets the private key for the certificate.

[Visual Basic]
Public ReadOnly Property PrivateKey As RSA
[C#]
public System.Security.Cryptography.RSA PrivateKey {get;}

Property Value

A System.Security.Cryptography.RSA containing the private key for the certificate.

Exceptions

Exception TypeCondition
CertificateExceptionAn error occurs while retrieving the RSA instance associated with the certificate.

See Also

Certificate Class | Certificate Members | Org.Mentalis.Security.Certificates Namespace