The display name of a certificate template is not resolved. Only the object identifier (OID) of the certificate template is displayed.

Assume the following scenario:

  • For a certificate template, only the object identifier is shown, but not the display name and/or
  • Queries against the certification authority database contain only the object identifier for the certificate template ("CertificateTemplate" field), but not the display name.

Certificate dialog, "Details" tab: Certificate Template Information with Template=1.3.6.1.4.1.311.21.8..., Major Version Number=100, Minor Version Number=2

The error may also extend to queries against the certification authority database.

cmd: certutil -view -restrict "Requestid=14" -out "CertificateTemplate" csv returns only the OID 1.3.6.1.4.1.311.21.8...

For comparison, a certificate template that correctly displays the display name:

cmd: certutil -view -restrict "Requestid=21" -out "CertificateTemplate" csv returns the OID and the name "ADCS Labor CEP Encryption"

Two cases must be distinguished in this problem:

  • The certificate template was created recently
  • The certificate template has existed for some time and has already worked

Do you know TameMyCerts? TameMyCerts is an add-on for the Microsoft certification authority (Active Directory Certificate Services). It extends the function of the certification authority and enables the application of rule sets to realize the secure automation of certificate issuance. TameMyCerts is unique in the Microsoft ecosystem, has already proven itself in countless companies around the world and is available under a free license. It can be downloaded via GitHub and used free of charge. Professional maintenance is also offered.

The certificate template was created recently

If the certificate template was created recently, the corresponding information has probably not been replicated to the computer yet. The certificate template is stored as an Active Directory object. Each computer in the Active Directory forest will obtain the information from Active Directory via the autoenrollment process and cache it locally.

The cache for the currently logged-on user account is located in the following registry path:

HKEY_CURRENT_USER\Software\Microsoft\Cryptography\CertificateTemplateCache

The computer account cache is located in the following registry path:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\CertificateTemplateCache

Registry Editor: key CertificateTemplateCache with subkeys ADCSLabor... and values such as DisplayName, Flags and KeyUsage

The process can be started manually with the following command line command:

certutil -pulse

For user accounts:

certutil -pulse -user

For more information see article "Manually running the autoenrollment process ".

The certificate template has existed for some time and has already worked

If the method described above does not lead to success, it should be checked whether a display name is assigned to the object identifier.

The following command line command can be used for a query against the local cache:

certutil -oid {oid}

cmd: certutil -oid with the template OID reports "-- Unknown ObjectId" and "No display names"

For a direct query against Active Directory, the following command line command can be used analogously:

certutil -ds {oid}

Command prompt: certutil -ds finds CN=OID,CN=Public Key Services and the template ADCSLaborKerberosAuthentication (ADCS Labor Kerberos Authentication)

For comparison, a certificate template that correctly displays the display name:

Command prompt: certutil -ds finds the OID object and the template ADCSLaborCEPEncryption (ADCS Labor CEP Encryption)

In this case, the "displayName" attribute on the OID object is not set. The OID objects are located in the configuration partition of the Active Directory forest.

CN=OID,CN=Public Key Services,CN=Services,CN=Configuration,{Forest-Root-Domain}

ADSI Edit: OID object CN=6586262.BF21778343E1F7E008B53095A48946A4 under CN=Public Key Services, attribute displayName is not set

The attribute can be set with the ADSI Editor (adsiedit.msc) or the Windows PowerShell.

Get-ADObject "{LDAP-Pfad}" | Set-ADObject -Add @{displayname="{Anzeigename}"}

PowerShell: Get-ADObject piped to Set-ADObject -Add sets displayname="ADCS Labor Kerberos Authentication"