Mentalis.org Security Library documentation

Certificate.PublicKey Property

Gets the public key derived from the certificate's data. This key cannot be used to sign or decrypt data.

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

Property Value

A System.Security.Cryptography.RSA that contains the public key derived from the certificate's data.

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