Mentalis.org Security Library documentation

Certificate.GetCertHash Method (HashType)

Returns the hash value for the X.509v3 certificate as an array of bytes.

[Visual Basic]
Overloads Public Function GetCertHash( _
   ByVal type As HashType _
) As Byte()
[C#]
public byte[] GetCertHash(
   HashType type
);

Parameters

type
One of the HashType values.

Return Value

The hash value for the X.509 certificate.

Exceptions

Exception TypeCondition
CertificateExceptionAn error occurs while retrieving the hash of the certificate.

See Also

Certificate Class | Certificate Members | Org.Mentalis.Security.Certificates Namespace | Certificate.GetCertHash Overload List