CERT_PRIVATE_KEY_VALIDITY

The CERT_PRIVATE_KEY_VALIDITY structure indicates the period of use of the private key corresponding to the certified public key. If the NotBefore component is not present, no statement is made as to when the validity period of the private key commences. If the NotAfter component is not present, no statement is made as to when the validity period of the private key concludes.

CERT_PRIVATE_KEY_VALIDITY is a component of CERT_KEY_ATTRIBUTES_INFO.

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

Members

NotBefore
A date, before which the private key 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 private key 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.

See Also

CERT_KEY_ATTRIBUTES_INFO