X509Certificate structure (schannel.h)

The X509Certificate structure represents an X.509 certificate.

Syntax

typedef struct _X509Certificate {
  DWORD        Version;
  DWORD        SerialNumber[4];
  ALG_ID       SignatureAlgorithm;
  FILETIME     ValidFrom;
  FILETIME     ValidUntil;
  PSTR         pszIssuer;
  PSTR         pszSubject;
  PctPublicKey *pPublicKey;
} X509Certificate, *PX509Certificate;

Members

Version

The X.509 version number.

SerialNumber[4]

The serial number of the certificate.

SignatureAlgorithm

The ID of the algorithm used to create the digital signature for the certificate.

ValidFrom

The beginning of the period of validity for the certificate.

ValidUntil

The end of the period of validity for the certificate.

pszIssuer

A pointer to a string that specifies the issuer of the certificate.

pszSubject

A pointer to a string that specifies the subject of the certificate.

pPublicKey

A pointer to the public key used to create the signature for the certificate.

Requirements

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