CERT_ID structure (wincrypt.h)

The CERT_ID structure is used as 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;
  } DUMMYUNIONNAME;
} CERT_ID, *PCERT_ID;

Members

dwIdChoice

A DWORD value that indicates which member of the union is being used. This can be one of the following values.

Value Meaning
CERT_ID_ISSUER_SERIAL_NUMBER
IssuerSerialNumber
CERT_ID_KEY_IDENTIFIER
KeyId
CERT_ID_SHA1_HASH
HashId

DUMMYUNIONNAME

DUMMYUNIONNAME.IssuerSerialNumber

A CERT_ISSUER_SERIAL_NUMBER structure that uniquely identifies a certificate.

DUMMYUNIONNAME.KeyId

A CRYPT_HASH_BLOB structure that contains a certificate key identifier.

DUMMYUNIONNAME.HashId

A CRYPT_HASH_BLOB that contains a SHA1 hash of the certificate to be used as a unique identifier of the certificate.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header wincrypt.h