ICertProperty interface

The ICertProperty interface can be used to associate an external property with a certificate. Properties are never sent to or processed by a certification authority, and they are not stored inside a certificate. Typically, they are associated with a certificate after the certificate is received from the certification authority and before it is saved in a store. The properties are saved in the store along with the certificate. A collection of properties is contained in an ICertProperties object. You can initialize the collection by using an existing certificate.

The CERTENROLL_PROPERTYID enumeration identifies the properties that you can specify or retrieve. Also, the following interfaces, which inherit from ICertProperty, can be used to specify the most commonly used properties:

Note  We recommend that you use the interfaces in the preceding list when appropriate. Enrollment behavior is not defined when you use an ICertProperty base interface to represent any of these common properties.
 

Members

The ICertProperty interface inherits from the IDispatch interface. ICertProperty also has these types of members:

Methods

The ICertProperty interface has these methods.

MethodDescription
InitializeDecode

Initializes the object from a byte array that contains the property value.

InitializeFromCertificate

Initializes the object by using a property value associated with an existing certificate.

RemoveFromCertificate

Disassociates a property from a certificate.

SetValueOnCertificate

Associates a property value with an existing certificate.

 

Properties

The ICertProperty interface has these properties.

PropertyDescription

PropertyId

Specifies or retrieves a value of the CERTENROLL_PROPERTYID enumeration that identifies an external certificate property.

RawData

Retrieves the value of the certificate property.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

CertEnroll.h

DLL

CertEnroll.dll

See also

IDispatch
CertEnroll Interfaces
ICertProperties

 

 

Community Additions

ADD
Show: