Requesting a certificate fails with the error message "You cannot request a certificate at this time because no certificate types are available."

Assume the following scenario:

  • You try to request a certificate from an Active Directory-integrated certification authority (enterprise CA).
  • To do this, use the Microsoft Management Console (MMC), either for the logged-in user (certmgr.msc) or for the computer (certlm.msc).
  • The logged-in user also has the necessary permissions to request certificates from the certificate template in question (Enroll).
  • You don't get any certificate templates to choose from, even though they are correctly published on the certification authorities.
  • There is also no "Show hidden templates" option. This usually appears at the bottom left of the dialog.
  • The following error message is displayed:
Certificate types are not available. You cannot request a certificate at this time because no certificate types are available. If you need a certificate, contact your administrator.

Dialog "Certificate Enrollment": "Certificate types are not available", "You cannot request a certificate at this time because no certificate types are available."

Possible causes:

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.

Possible causes can be:

  • Communication with the Active Directory is not possible
  • An enrollment policy is configured that points to an invalid address.
  • No certificate templates are available for the current user context when requesting via the Certificate Enrollment Web Services.
  • No compatible certificate templates are available when requesting via the Certificate Enrollment Web Services.

Details: Communication with the Active Directory is not possible

The absence of the "Show hidden templates" option may be an indication that the query of the certificate templates from Active Directory already fails.

It should therefore first be checked whether the computer and user in question can communicate with the Active Directory. The first point of contact is the Event Viewer on the computer in question.

You should also check whether the session of the logged-in user is still valid. For example, it could be that a Windows session is being used that has not been logged in again after the password has been changed. It is also possible that the Kerberos Ticket Granting Ticket (TGT) has not been automatically renewed because the user is a member of the "Protected Users" security group. If in doubt, log out and log back in to the system in question.

Details: An enrollment policy is configured that points to an invalid address.

The absence of the "Show hidden templates" option may be an indication that the query of the certificate templates from Active Directory already fails.

By default, the enrollment policy refers to the GUID of the root domain of the Active Directory forest.

For example, if a Group Policy is imported from a test environment, the GUIDs no longer match and the certificate templates cannot be retrieved.

A report on the configured Group Policies can be created with the following commands:

gpresult /scope:user /H Benutzer.html
gpresult /scope:computer /H Computer.html

You can then search for the term "Enrollment Policy" in the HTML files generated.

Group policy report "Extra Registry Settings": policy server entries with "Enrollment Policy" and the PolicyID marked

The GUID of the root domain of the Active Directory forest can be queried with the following PowerShell command (requires Active Directory PowerShell module):

(Get-ADForest | Select-Object -ExpandProperty RootDomain | Get-ADDomain).ObjectGUID

PowerShell: Get-ADForest and Get-ADDomain return the ObjectGUID fcc77a9a-1564-40ef-a5ee-ecccf13ce286

Alternatively, this can also be determined via the Active Directory Users and Computers (dsa.msc) management console. To do this, right-click on the root domain of the forest, select Properties and search for the value objectGUID in the "Attribute Editor" tab.

Active Directory Users and Computers: properties of lab2m2.local, "Attribute Editor" tab, objectGUID marked in red

Details: No certificate templates are available for the current user context when requesting via the Certificate Enrollment Web Services.

If the request is made via the Certificate Enrollment Web Services (CEP, CES), it should be checked whether a certificate template is published at all for the current context (computer or user certificate store). In contrast to the request via RPC/DCOM, the "Show hidden templates" option is also not available in this case.

Dialog "Select Certificate Enrollment Policy": "ADCS Labor CEP (Kerberos)" under "Configured by your administrator" marked

Details: No compatible certificate templates are available when requesting via the Certificate Enrollment Web Services.

There is a known error in the Certificate Enrollment Policy Web Service (CEP) which means that certificate templates whose compatibility is set to Windows 10 or Windows Server 2016 are not displayed. For more details, see the article "Certificate Enrollment Policy Web Service does not display certificate templates configured for compatibility with Windows Server 2016 or Windows 10 ".

Template properties "ADCS Labor Benutzer", "Compatibility" tab: Certification Authority Windows Server 2016, Certificate recipient Windows XP / Server 2003

In this case, the certificate template compatibility must be set to Windows Server 2012 R2 or lower, if possible.

External sources