Partager via


X509Util.GetKeyIdentifierFromRawData Method

Get the SHA1 hash of the X.509 certificate.

Namespace: Microsoft.Web.Services3.Security.X509
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim certificate As X509Certificate
Dim returnValue() As Byte
returnValue = X509Util.GetKeyIdentifierFromRawData(certificate)

Syntax

'Declaration
Public Shared Function GetKeyIdentifierFromRawData( _
    ByVal certificate As X509Certificate _
) As Byte()
public static byte[] GetKeyIdentifierFromRawData(
    X509Certificate certificate
);
public:
static array<unsigned char>^ GetKeyIdentifierFromRawData(
    X509Certificate^ certificate
);
public static ubyte[] GetKeyIdentifierFromRawData(
    X509Certificate certificate
);
public static function GetKeyIdentifierFromRawData(
     certificate : X509Certificate
) : Byte[];

Parameters

  • certificate
    A System.Security.Cryptography.X509Certificates.X509Certificate2 that represents the X.509 certificate to get the subject key identifier for.

Return Value

An array of System.Byte that contains the SHA1 hash of the X.509 certificate.

Thread Safety

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

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

X509Util Class
X509Util Members
Microsoft.Web.Services3.Security.X509 Namespace