RSA Security logo

RSA BSAFE Cert-C
API Reference

PRIVATE_KEY_USAGE_PERIOD Reference

Represents the Private-Key Usage Period extension for X.509 v3 certificates.

It allows the certificate issuer to specify a different validity period for the private key than for the certificate. The default criticality for this extension is NON_CRITICAL. A certificate can have only one Private-Key Usage Period extension at a time. Use the PRIVATE_KEY_USAGE_PERIOD structure with the C_AddExtensionValue() and C_GetExtensionValue() functions.

Data Fields
start A GENERALIZED_TIME structure that specifies the time when the private-key validity starts. To omit, set all GENERALIZED_TIME fields to 0 (zero).
end A GENERALIZED_TIME structure that specifies the time when the private-key validity ends. To omit, set all GENERALIZED_TIME fields to 0 (zero).
  • Only one of the two fields, start or end, may be omitted.

#include <certext.h>

01900 typedef struct PRIVATE_KEY_USAGE_PERIOD {
01901   GENERALIZED_TIME start;       /* key validity starts */
01902   GENERALIZED_TIME end;         /* key validity end */
01903 } PRIVATE_KEY_USAGE_PERIOD;

The documentation for this struct was generated from the following file:


RSA BSAFE® Cert-C 2.7 API Reference