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 identifies the key used to sign a certificate. It differs from the CERT_AUTHORITY_KEY_ID_INFOstructure in that the certificate issuer is a CERT_ALT_NAME_INFOstructure instead of a CERT_NAME_BLOBstructure. Otherwise, the structures are used in the same way.

The key can be identified by an explicit key identifier, by giving a certificate's issuer and serial number, or by giving both. If both are used, the certificate issuer must ensure that the explicit key identifier, the certificate issuer, and the serial number are consistent.

The CryptDecodeObjectfunction creates an instance of this structure when performed on a CERT_EXTENSIONstructure's Valuemember with the structure's pszObjIdmember set to szOID_AUTHORITY_KEY_IDENTIFIER2.

An instance of this structure can be used as input to the CryptEncodeObjectfunction to create an appropriate CERT_EXTENSIONstructure.

Syntax

typedef struct _CERT_AUTHORITY_KEY_ID2_INFO {
  CRYPT_DATA_BLOB 
KeyId;
  CERT_ALT_NAME_INFO 
AuthorityCertIssuer;
  CRYPT_INTEGER_BLOB 
AuthorityCertSerialNumber;
} CERT_AUTHORITY_KEY_ID2_INFO, *PCERT_AUTHORITY_KEY_ID2_INFO;

Members

KeyId

CRYPT_DATA_BLOBstructure containing a unique identifier of a public key.

AuthorityCertIssuer

CERT_ALT_NAME_INFOstructure that includes the encoded name of the certification authority (CA) that issued the certificate. The cAltEntrymember of the structure may be set to zero if the name is not to be used to identify the CA.

AuthorityCertSerialNumber

CRYPT_INTEGER_BLOBstructure that includes the serial number of the certificate associated with the private key used to sign this certificate. For more details, see the CERT_INFOstructure.

Requirements

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

See Also