Share via


CERT_PRIVATE_KEY_VALIDITY

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This structure indicates a valid time span for the private key corresponding to a certificate's public key. If the NotBefore object is zero or not present, no statement is made as to when the validity period of the private key begins. If the NotAfter object is zero or not present, no end date is set on the validity of the private key.

A CERT_PRIVATE_KEY_VALIDITY structure is a member of the CERT_KEY_ATTRIBUTES_INFO structure.

Syntax

typedef struct _CERT_PRIVATE_KEY_VALIDITY {
  FILETIME NotBefore;
  FILETIME NotAfter;
} CERT_PRIVATE_KEY_VALIDITY, *PCERT_PRIVATE_KEY_VALIDITY;

Members

  • NotBefore
    Date and time before which the certificate is not valid. For dates between 1950 and 2049 inclusive, the date and time is encoded UTC-time in the form YYMMDDHHMMSS. This member uses a two-digit year and is precise to seconds. For dates before 1950 or after 2049, encoded generalized time is used. Encoded generalized time is in the form YYYYMMDDHHSSMMM, using a four-digit year, and is precise to milliseconds. Even though generalized time supports millisecond resolution, the NotBefore time is only precise to seconds.
  • NotAfter
    Date and time after which the certificate is not valid. For dates between 1950 and 2049 inclusive, the date and time is encoded UTC-time in the form YYMMDDHHMMSS. This member uses a two-digit year and is precise to seconds. For dates before 1950 or after 2049, encoded generalized time is used. Encoded generalized time is in the form YYYYMMDDHHSSMMM, using a four-digit year, and is precise to milliseconds. Even though generalized time supports millisecond resolution, the NotAfter time is only precise to seconds.

Requirements

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

See Also

Reference

CERT_KEY_ATTRIBUTES_INFO