Adding and Retrieving Certificate Properties

Several functions add extended properties to certificates. The original data in a certificate context is read-only and cannot be changed; however, CryptoAPI certificates also have dynamic extended properties that can be added and changed. These properties include data that:

Values for these properties are attached to and move with the certificate. There are currently five predefined properties identified with property IDs:

CertSetCertificateContextProperty sets properties on a certificate; CertSetCRLContextProperty sets CRL properties; and CertSetCTLContextProperty sets CTL properties.

Three functions retrieve certificate properties. CertGetCertificateContextProperty retrieves certificate properties; CertGetCRLContextProperty retrieves CRL properties; and CertGetCTLContextProperty retrieves CTL properties.