CERT_INFO

The CERT_INFO structure stores information in a certificate.

typedef struct _CERT_INFO {
    DWORD                       dwVersion;
    CRYPT_INTEGER_BLOB          SerialNumber;
    CRYPT_ALGORITHM_IDENTIFIER  SignatureAlgorithm;
    CERT_NAME_BLOB              Issuer;
    FILETIME                    NotBefore;
    FILETIME                    NotAfter;
    CERT_NAME_BLOB              Subject;
    CERT_PUBLIC_KEY_INFO        SubjectPublicKeyInfo;
    CRYPT_BIT_BLOB              IssuerUniqueId;
    CRYPT_BIT_BLOB              SubjectUniqueId;
    DWORD                       cExtension;
    PCERT_EXTENSION             rgExtension;
} CERT_INFO, *PCERT_INFO;
 

Members

dwVersion
The certificate's version number. Currently defined version numbers are shown in the following table.
Certificate version name Value
CERT_V1 0
CERT_V2 1
CERT_V3 2

SerialNumber
The certificate's serial number. (Decoded as a multiple byte integer. SerialNumber.pbData[0] is the least significant byte. SerialNumber.pbData[SerialNumber.cbData - 1] is the most significant byte.)

For X509_ASN_ENCODING, leading 0x00 or 0xFF bytes are removed. See CertCompareIntegerBlob.

SignatureAlgorithm
A structure that contains the signature algorithm type and any associated additional parameters (encoded form).
Issuer
The certificate issuer's name (encoded form).
NotBefore
A date, before which the certificate is not valid. For X509_ASN_ENCODING, if the time is after 1950 and before 2050, it is UTC time encoded as a two-digit year precise to seconds. Otherwise, it is Generalized time encoded as a four-digit year precise to seconds.
NotAfter
A date, after which the certificate is not valid. For X509_ASN_ENCODING, if the time is after 1950 and before 2050, it is UTC time encoded as a two-digit year precise to seconds. Otherwise, it is Generalized time encoded as a four-digit year precise to seconds.
Subject
The certificate subject's name (encoded form).
SubjectPublicKeyInfo
A structure that contains the public key (encoded form) and its algorithm.
IssuerUniqueId
A special designation given to the issuer.
SubjectUniqueId
A special designation given to the subject.
cExtension
The number of elements in the array rgExtension.
rgExtension
An array of structures, each holding CERT_EXTENSION information about the certificate.

See Also

BLOB Structure, CERT_EXTENSION, CERT_PUBLIC_KEY_INFO, CMSG_ENVELOPED_ENCODE_INFO, CMSG_SIGNER_ENCODE_INFO, CRYPT_ALGORITHM_IDENTIFIER, CRYPT_BIT_BLOB, CRYPT_VERIFY_MESSAGE_PARA, CertCompareCertificate, CertGetSubjectCertificateFromStore, CryptMsgControl, CryptMsgGetParam, CryptSignAndEncodeCertificate