Requesting certificates via the Certificate Enrollment Policy Web Service (CEP) fails with error message "A valid certification authority (CA) configured to issue certificates based on this template cannot be located, or the CA does not support this operation, or the CA is not trusted."

Assume the following scenario:

  • You try to request a certificate via a Certificate Enrollment Policy Web Service (CEP) from an Active Directory-integrated certification authority (Enterprise Certification Authority).
  • To do this, use the Microsoft Management Console (MMC), either for the logged-in user (certmgr.msc) or for the computer (certlm.msc).
  • However, the list of available certificate templates within the MMC is completely empty.
  • In the list of available certificate templates within the MMC, all certificate templates are displayed. At all desired certificate templates it is written:
Cannot find Object or property.
A valid certification authority (CA) configured to issue certificates based on this template cannot be located, or the CA does not support this operation, or the CA is not trusted. 

The Certificate Enrollment Web Services (Certificate Enrollment Policy Web Service, CEP, and Certificate Enrollment Web Service, CES) enable the automatic request and renewal of certificates from a certification authority via a Web-based interface. This eliminates the need to contact the certification authority directly via Remote Procedure Call (RPC). For a more detailed description, see the article "Certificate request basics via Certificate Enrollment Web Services (CEP, CES)„.

The CEP Server will use the Event #10 log in the event viewer:

There is no enterprise certification authority (CA) configured with the Certificate Enrollment Web Service in the current forest. Confirm that at least one enterprise CA is available in the forest and that at least one server running the Certificate Enrollment Web Service is configured to work with this CA.

Cause

This error is not with the Certificate Enrollment Web Policy Service (CEP), but with the Certificate Enrollment Web Service (CES) and can occur under the following circumstances:

  • The user has no rights on the certificate templates.
  • There is a bug that causes certificate templates set to Windows Server 2016 compatibility not to be displayed.
  • If the Windows logon service provider on the CEP server has been disabled (for example, by a hardening action), the logon service provider in Internet Information Services (IIS) for CEP must be changed from Negotiate to Negotiate:Kerberos (in this case, no event is logged on the CEP).
  • There is no CES on the network. Accordingly, none of the pKIEnrollmentService objects in Active Directory has a filled msPKI Enrollment Servers attribute.
  • The CES address in the msPKI enrollment server attribute within the pKIEnrollmentService object of the certification authority is configured incorrectly.

You can view the Certificate Enrollment Web Services configured for a certificate authority with the following command line command:

certutil -config "{host-name-of-the-CA-server}\{common-name-of-the-CA}" -enrollmentserverurl

Details: There is a bug that causes certificate templates set to Windows Server 2016 compatibility not to be displayed.

There is a known issue that via CES. cannot display certificate templates configured for Windows Server 2016 compatibility.

The bug has not been fixed yet, so this statement also applies to Windows Server 2019.

The only way around this is to set the certificate template to the highest Windows Server 2012 R2 compatibility.

For the background, see the article "Description of certificate template generations„.

Configuration error examples

No output of the command - because no enrollment server is configured for this certificate authority
Wrong: A backslash "/" for the web address was forgotten here.

The enrollment server addresses should always be edited with the associated command line tools. Editing with the ADSI editor, for example, will result in the entry in the msPKI enrollment server attribute not being processed correctly.

Wrong: Here the Enrollment Server URL was entered with the ADSI Editor and cannot be read out.
Correct: This is what the output of the command should look like.

Related links:

External sources

2 thoughts on “Die Beantragung eines Zertifikats über den Certificate Enrollment Policy Web Service (CEP) schlägt fehl mit Fehlermeldung „A valid certification authority (CA) configured to issue certificates based on this template cannot be located, or the CA does not support this operation, or the CA is not trusted.“”

Comments are closed.

en_USEnglish