AdcsCertificateTemplate Class

Represents Microsoft AD CS decoded certificate template.

Definition

Namespace: SysadminsLV.PKI.ADCS.CertificateTemplates
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public class AdcsCertificateTemplate
Inheritance
Object    AdcsCertificateTemplate

Constructors

AdcsCertificateTemplateInitializes a new instance of the AdcsCertificateTemplate class

Properties

AutoenrollmentAllowed This flag indicates whether clients can perform autoenrollment for the specified template.
Cryptography Gets cryptography settings defined in the certificate template.
DisplayName Gets certificate template display name. Display name has no character restrictions.
DistinguishedName Gets certificate template's full distinguished name (location address) in Active Directory.
EnrollmentFlags Gets template enrollment flags.
Extensions Gets certificate extensions defined within current certificate template.
GeneralFlags Gets template general flags.
LastWriteTime Gets the timestamp when certificate template was edited last time. The value can be used for audit purposes.
Name Gets certificate template common name. Common names cannot contain the following characters: " + , ; < = >
OID Gets certificate template's object identifier. Object identifiers are used to uniquely identify certificate template. While certificate template common and display names can be changed, OID remains the same. Once template is deleted from Active Directory, associated OID is removed too. Any new template (even if with the same name values) will have different OID value.
Purpose Gets the purpose of the certificate template's private key.
RegistrationAuthority Gets registration authority requirements. These are number of authorized signatures and authorized certificate application and/or issuance policy requirements.
RenewalPeriod Gets template autoenrollment renewal period information.
SchemaVersion Gets certificate template schema version (also known as template version). The value can be either 1, 2, 3 or 4. For template support by CA version see SupportedCA property description.
SubjectName Gets or sets the way how the certificate's subject should be constructed.
SubjectType Gets or sets certificate's subject type. Can be either: Computer, User, CA or CrossCA.
SupersededTemplates Gets certificate template name list that is superseded by the current template.
SupportedCA Gets the minimum version of the Certification Authority that can use this template to issue certificates. The following table describes template support by CA version:
Schema versionSupported CA versions
1
  • Windows 2000 Server
  • Windows Server 2003 Standard, Enterprise, Datacenter editions
  • Windows Server 2008 Standard, Enterprise, Datacenter editions
  • Windows Server 2008 R2 Standard, Enterprise, Datacenter editions
  • Windows Server 2012 Foundation, Essentials, Standard, Datacenter editions
  • Windows Server 2012 R2 Foundation, Essentials, Standard, Datacenter editions
  • Windows Server 2016 Standard, Datacenter editions
  • Windows Server 2019 Standard, Datacenter editions
  • Windows Server 2022 Standard, Datacenter editions
2
  • Windows Server 2003 Enterprise, Datacenter editions
  • Windows Server 2008 Enterprise, Datacenter editions
  • Windows Server 2008 R2 Standard, Enterprise, Datacenter editions
  • Windows Server 2012 Foundation, Essentials, Standard, Datacenter editions
  • Windows Server 2012 R2 Foundation, Essentials, Standard, Datacenter editions
  • Windows Server 2016 Standard, Datacenter editions
  • Windows Server 2019 Standard, Datacenter editions
  • Windows Server 2022 Standard, Datacenter editions
3
  • Windows Server 2008 Enterprise, Datacenter editions
  • Windows Server 2008 R2 Standard, Enterprise, Datacenter editions
  • Windows Server 2012 Foundation, Essentials, Standard, Datacenter editions
  • Windows Server 2012 R2 Foundation, Essentials, Standard, Datacenter editions
  • Windows Server 2016 Standard, Datacenter editions
  • Windows Server 2019 Standard, Datacenter editions
  • Windows Server 2022 Standard, Datacenter editions
4
  • Windows Server 2012 Foundation, Essentials, Standard, Datacenter editions
  • Windows Server 2012 R2 Foundation, Essentials, Standard, Datacenter editions
  • Windows Server 2016 Standard, Datacenter editions
  • Windows Server 2019 Standard, Datacenter editions
  • Windows Server 2022 Standard, Datacenter editions
SupportedClient Gets the minimum supported client that can enroll certificates based on this template.
ValidityPeriod Gets template validity period information.
Version Gets certificate template internal version string. The version consist of two values separated by dot: major version and minor version. Any template changes causes internal version change.

Methods

Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

See Also