Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This structure is a flexible means of uniquely identifying a certificate.

Syntax

typedef struct _CERT_ID {
  DWORD 
dwIdChoice;
  union {
	CERT_ISSUER_SERIAL_NUMBER 
IssuerSerialNumber;
	CRYPT_HASH_BLOB 
KeyId;
	CRYPT_HASH_BLOB 
HashId;
  };
} CERT_ID, *PCERT_ID;

Members

dwIdChoice

DWORDindicating which member of the union is being used. The following table shows possible values for this member.

Value Union member used

CERT_ID_ISSUER_SERIAL_NUMBER

IssuerSerialNumber

CERT_ID_KEY_IDENTIFIER

KeyId

CERT_ID_SHA1_HASH

HashId

IssuerSerialNumber

CERT_ISSUER_SERIAL_NUMBERstructure that uniquely identifies a certificate.

KeyId

CRYPT_HASH_BLOBstructure containing a certificate key identifier.

HashId

CRYPT_HASH_BLOBstructure containing an SHA1 hash of the certificate to be used as a unique identifier of the certificate.

Requirements

Header wincrypt.h
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also