CERT_PRIVATE_KEY_VALIDITY (Compact 2013)
3/28/2014
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 |