Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

EnrollmentTemplateProperty enumeration

The EnrollmentTemplateProperty enumeration contains property values for a given template.

Syntax


typedef enum EnrollmentTemplateProperty { 
  TemplatePropCommonName             = 1,
  TemplatePropFriendlyName           = 2,
  TemplatePropEKUs                   = 3,
  TemplatePropCryptoProviders        = 4,
  TemplatePropMajorRevision          = 5,
  TemplatePropDescription            = 6,
  TemplatePropKeySpec                = 7,
  TemplatePropSchemaVersion          = 8,
  TemplatePropMinorRevision          = 9,
  TemplatePropRASignatureCount       = 10,
  TemplatePropMinimumKeySize         = 11,
  TemplatePropOID                    = 12,
  TemplatePropSupersede              = 13,
  TemplatePropRACertificatePolicies  = 14,
  TemplatePropRAEKUs                 = 15,
  TemplatePropCertificatePolicies    = 16,
  TemplatePropV1ApplicationPolicy    = 17,
  TemplatePropAsymmetricAlgorithm    = 18,
  TemplatePropKeySecurityDescriptor  = 19,
  TemplatePropSymmetricAlgorithm     = 20,
  TemplatePropSymmetricKeyLength     = 21,
  TemplatePropHashAlgorithm          = 22,
  TemplatePropEnrollmentFlags        = 23,
  TemplatePropSubjectNameFlags       = 24,
  TemplatePropPrivateKeyFlags        = 25,
  TemplatePropGeneralFlags           = 26,
  TemplatePropSecurityDescriptor     = 27,
  TemplatePropExtensions             = 28,
  TemplatePropValidityPeriod         = 29,
  TemplatePropRenewalPeriod          = 30
} EnrollmentTemplateProperty;

Constants

TemplatePropCommonName

A VT_BSTR value that contains the common name of the template in Active Directory.

TemplatePropFriendlyName

A VT_BSTR value that contains the template display name.

TemplatePropEKUs

A VT_DISPATCH pointer to an IObjectIds interface that contains a collection of extended key usage object identifiers. This value applies to version 2 and later templates.

TemplatePropCryptoProviders

A VT_ARRAY|VT_BSTR collection of cryptographic service providers (version 2) and key storage providers (version 3) that the client can use when generating requests based on this template.

TemplatePropMajorRevision

A VT_UI4 value that specifies the major version number for the template.

TemplatePropDescription

Not used.

TemplatePropKeySpec

A VT_UI4 value that contains AT_SIGNATURE or AT_KEYEXCHANGE to specify the Key_Spec value for legacy cryptographic service providers.

TemplatePropSchemaVersion

A VT_UI4 value that specifies the template version. Currently, this can be 1, 2, or 3.

TemplatePropMinorRevision

A VT_UI4 value that specifies the minor version number of a version 2 and later template.

TemplatePropRASignatureCount

A VT_UI4 value that specifies the number of recovery agent signatures that are required when generating a certificate request base on this template.

TemplatePropMinimumKeySize

A VT_UI4 value that specifies the minimum size of the public key used by the enrolling client.

TemplatePropOID

A VT_DISPATCH pointer to an IObjectId interface that contains an object identifier for this template. This value applies to version 2 and later templates.

TemplatePropSupersede

A VT_ARRAY|VT_BSTR collection that contains the common names of all version 2 and later templates that have been superseded.

TemplatePropRACertificatePolicies

A VT_DISPATCH pointer to an IObjectIds interface that contains a collection of certificate policy object identifiers for the registration authority certificates. This value applies to version 2 and later templates.

TemplatePropRAEKUs

A VT_DISPATCH pointer to an IObjectIds interface that contains a collection of application policy object identifiers for the registration authority certificates. This value applies to version 2 and later templates.

TemplatePropCertificatePolicies

A VT_DISPATCH pointer to an IObjectIds interface that contains a collection of policy object identifiers to be added to the certificate policy extension.

TemplatePropV1ApplicationPolicy

A VT_DISPATCH pointer to an IObjectIds interface that contains a collection of policy object identifiers to be added to the certificate application policy extension.

TemplatePropAsymmetricAlgorithm

A VT_BSTR value that specifies the name of a public key algorithm the enrolling client must use when generating a certificate request based on this template. This value applies to version 3 and later templates.

TemplatePropKeySecurityDescriptor

A VT_BSTR value that specifies the asymmetric key security descriptor for version 3 and later templates.

TemplatePropSymmetricAlgorithm

A VT_BSTR value that specifies the name of the symmetric algorithm that a client must use for key exchange when using this template. This value applies to version 3 and later templates.

TemplatePropSymmetricKeyLength

A VT_UI4 value that specifies the length, in bits, of the symmetric key. This value applies to version 3 and later templates.

TemplatePropHashAlgorithm

A VT_BSTR value that specifies the name of the hashing algorithm that an enrolling client must use. This value applies to version 3 and later templates.

TemplatePropEnrollmentFlags

A VT_I4 value that contains a bitwise OR of X509CertificateTemplateEnrollmentFlag values.

TemplatePropSubjectNameFlags

A VT_UI4 value that contains a bitwise OR of X509CertificateTemplateSubjectNameFlag values.

TemplatePropPrivateKeyFlags

A VT_UI4 value that contains a bitwise OR of X509CertificateTemplatePrivateKeyFlag values.

TemplatePropGeneralFlags

A VT_UI4 value that contains a bitwise OR of X509CertificateTemplateGeneralFlag values.

TemplatePropSecurityDescriptor

A VT_BSTR value that specifies the security descriptor.

TemplatePropExtensions

A VT_DISPATCH pointer to an IX509Extensions interface that contains the certificate extensions to be added to the certificate request when generating requests based on this template.

TemplatePropValidityPeriod

A VT_UI8 FILETIME value that contains the maximum validity period, in seconds, of the certificate.

TemplatePropRenewalPeriod

A VT_UI8 FILETIME value that specifies the amount of time before expiration that automatic enrollment has to attempt certificate renewal.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Certenroll.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft