Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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,
  TemplatePropKeyUsage = 23,
  TemplatePropEnrollmentFlags = 24,
  TemplatePropSubjectNameFlags = 25,
  TemplatePropPrivateKeyFlags = 26,
  TemplatePropGeneralFlags = 27,
  TemplatePropSecurityDescriptor = 28,
  TemplatePropExtensions = 29,
  TemplatePropValidityPeriod = 30,
  TemplatePropRenewalPeriod = 31
} ;
Constants
TemplatePropCommonNameValue: 1 A VT_BSTR value that contains the common name of the template in Active Directory.  | 
|
TemplatePropFriendlyNameValue: 2 A VT_BSTR value that contains the template display name.  | 
|
TemplatePropEKUsValue: 3 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.  | 
|
TemplatePropCryptoProvidersValue: 4 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. | 
TemplatePropMajorRevisionValue: 5 A VT_UI4 (VT_I4 beginning with Windows 8.1) value that specifies the major version number for the template.  | 
|
TemplatePropDescriptionValue: 6 Not used.  | 
|
TemplatePropKeySpecValue: 7 A VT_UI4 (VT_I4 beginning with Windows 8.1) value that contains AT_SIGNATURE or AT_KEYEXCHANGE to specify the Key_Spec value for legacy cryptographic service providers.  | 
|
TemplatePropSchemaVersionValue: 8 A VT_UI4 (VT_I4 beginning with Windows 8.1) value that specifies the template version. Currently, this can be 1, 2, or 3.  | 
|
TemplatePropMinorRevisionValue: 9 A VT_UI4 (VT_I4 beginning with Windows 8.1) value that specifies the minor version number of a version 2 and later template.  | 
|
TemplatePropRASignatureCountValue: 10 A VT_UI4 (VT_I4 beginning with Windows 8.1) value that specifies the number of recovery agent signatures that are required when generating a certificate request base on this template.  | 
|
TemplatePropMinimumKeySizeValue: 11 A VT_UI4 (VT_I4 beginning with Windows 8.1) value that specifies the minimum size of the public key used by the enrolling client.  | 
|
TemplatePropOIDValue: 12 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.  | 
|
TemplatePropSupersedeValue: 13 A VT_ARRAY  | 
VT_BSTR collection that contains the common names of all version 2 and later templates that have been superseded. | 
TemplatePropRACertificatePoliciesValue: 14 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.  | 
|
TemplatePropRAEKUsValue: 15 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.  | 
|
TemplatePropCertificatePoliciesValue: 16 A VT_DISPATCH pointer to an IObjectIds interface that contains a collection of policy object identifiers to be added to the certificate policy extension.  | 
|
TemplatePropV1ApplicationPolicyValue: 17 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.  | 
|
TemplatePropAsymmetricAlgorithmValue: 18 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.  | 
|
TemplatePropKeySecurityDescriptorValue: 19 A VT_BSTR value that specifies the asymmetric key security descriptor for version 3 and later templates.  | 
|
TemplatePropSymmetricAlgorithmValue: 20 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.  | 
|
TemplatePropSymmetricKeyLengthValue: 21 A VT_UI4 (VT_I4 beginning with Windows 8.1) value that specifies the length, in bits, of the symmetric key. This value applies to version 3 and later templates.  | 
|
TemplatePropHashAlgorithmValue: 22 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.  | 
|
TemplatePropKeyUsageValue: 23  | 
|
TemplatePropEnrollmentFlagsValue: 24 A VT_I4 value that contains a bitwise OR of X509CertificateTemplateEnrollmentFlag values.  | 
|
TemplatePropSubjectNameFlagsValue: 25 A VT_UI4 (VT_I4 beginning with Windows 8.1) value that contains a bitwise OR of X509CertificateTemplateSubjectNameFlag values.  | 
|
TemplatePropPrivateKeyFlagsValue: 26 A VT_UI4 (VT_I4 beginning with Windows 8.1) value that contains a bitwise OR of X509CertificateTemplatePrivateKeyFlag values.  | 
|
TemplatePropGeneralFlagsValue: 27 A VT_UI4 (VT_I4 beginning with Windows 8.1) value that contains a bitwise OR of X509CertificateTemplateGeneralFlag values.  | 
|
TemplatePropSecurityDescriptorValue: 28 A VT_BSTR value that specifies the security descriptor.  | 
|
TemplatePropExtensionsValue: 29 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.  | 
|
TemplatePropValidityPeriodValue: 30 A VT_UI8 FILETIME value that contains the maximum validity period, in seconds, of the certificate.  | 
|
TemplatePropRenewalPeriodValue: 31 A VT_UI8 FILETIME value that specifies the amount of time before expiration that automatic enrollment has to attempt certificate renewal.  | 
Requirements
| Requirement | Value | 
|---|---|
| Minimum supported client | Windows 7 [desktop apps only] | 
| Minimum supported server | Windows Server 2008 R2 [desktop apps only] | 
| Header | certenroll.h |