CertificateTemplate Class

Represents a certificate template object.

Definition

Namespace: PKI.CertificateTemplates
Assembly: SysadminsLV.PKI.Win (in SysadminsLV.PKI.Win.dll) Version: 4.0.1.0 (4.0.1.0)
C#
public class CertificateTemplate
Inheritance
Object    CertificateTemplate

Properties

AutoenrollmentAllowed This flag indicates whether clients can perform autoenrollment for the specified 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.
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 differen OID value.
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.
Settings Gets or sets certificate template extended settings.
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.
Version Gets certificate template internal version. The version consist of two values separated by dot: major version and minor version. Any template changes causes internal version change.

Methods

EnumTemplates Enumerates certificate templates registered in Active Directory.
Equals(CertificateTemplate) Compares two CertificateTemplate objects for equality.
Equals(Object) Compares two CertificateTemplate objects for equality.
(Overrides ObjectEquals(Object))
Finalize
(Inherited from Object)
Format Gets certificate template textual representation.
FromCommonName Creates a new instance of CertificateTemplate object from certificate template's common name.
FromDisplayName Creates a new instance of CertificateTemplate object from certificate template's display name.
FromOid Creates a new instance of CertificateTemplate object from certificate template's object identifier (OID).
GetHashCode Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode)
GetSecurityDescriptor Gets access control list (security descriptor) of the current certificate template.
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

See Also