Performing a functional test for the Certificate Enrollment Policy Web Service (CEP)

After installing a Certificate Enrollment Policy Web Service (CEP), or after more extensive maintenance work, an extensive functional test should be performed to ensure that all components are working as desired.

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)„.

A functional test of the certificate request policy server includes the following steps:

  • Ensure start of the certificate request policy server service
  • Checking the Certificate Request Policy Server Event Viewer
  • Verify connection to the certificate request policy server
  • Create Certificate Enrollment policy
  • Query certificate templates via the certificate request policy server
  • Apply for a certificate with CEP

Details: Ensure the start of the certificate request policy server service.

Since the certificate request policy server is implemented as a module within the Internet Information Server (IIS) service, it is not possible to control the service startup via the services administration account (services.msc). Instead, a corresponding Event with no. 1 logged in the event display.

However, this is only generated the first time it is called up by a requester, so the "Check connection to certificate request policy server" step described below must be performed first for this purpose.

Details: Checking the Certificate Request Policy Server Event Viewer

See also article "Overview of Windows events generated by the Certificate Enrollment Policy (CEP) service„.

First, the Windows Event Viewer on the certificate request policy server should be examined for any relevant events that might indicate an error. For this purpose, there is a predefined view in the event viewer under "Custom Views" - "Server Roles" - "Active Directory Certificate Services", which has already defined the required filters on the event viewer.

Details: Check connection to certificate request policy server

Kerberos authentication can be tested with the following command line command.

certutil -ping -kerberos -config "https://{Servername}/ADPolicyProvider_CEP_Kerberos/service.svc/CEP" CEP

Authentication with username and password can be tested with the following command line command.

certutil -username {domain}\{username} -p {password} -ping -config "https://{Servername}/ADPolicyProvider_CEP_UsernamePassword/service.svc/CEP" CEP

Authentication with a client certificate can be tested with the following command line command.

certutil -ClientCertificate {Thumbprint} -ping -config "https://{ServerName}/ADPolicyProvider_CEP_Certificate/service.svc/CEP" CEP

If you encounter problems with this step, the following articles may be helpful:

Details: Create certificate request policy

Now a certificate request policy can be configured. The procedure is described in the article "Configuration of a certificate request policy (enrollment policy) for the certificate request web services (CEP, CES)" described.

If you encounter problems with this step, the following articles may be helpful:

Details: Query certificate templates via the certificate request policy server

If a certificate request policy has been configured for the current user as described previously, this can now be used to query the certificate templates via the certificate request policy server.

certutil -template -policyserver *

This is cached information that is generated only after a query has been made with the Microsoft Management Consolem (MMC).

Apply for a certificate with CEP

For this, a Certificate Enrollment Web Service (CES) must also first be installed in the network. A description of the procedure can be found in the article "Installing a Certificate Enrollment Web Service (CES)„.

A certificate enrollment policy can then be set up and a certificate can be requested via Web Services.

If you encounter problems with this step, the following articles may be helpful:

Other possible errors that can occur at this point are causal in the Certificate Enrollment Web Service (CES) are described accordingly in the article "Perform functional test for Certificate Enrollment Web Service (CES)" described.

Rework

If a certificate request policy was set up manually for testing, it can now be removed again. The procedure for this is described in the article "Deleting a Manually Configured Certificate Request Policy (Enrollment Policy)" described.

Related links:

en_USEnglish