Certificate Enrollment Web Service (CES) request fails with error code "WS_E_ENDPOINT_FAULT_RECEIVED"

Assume the following scenario:

  • A Certificate Enrollment Web Service (CES) is implemented in the network.
  • A certificate request is sent to the CES.
  • The certificate request fails with the following error message:
A message containing a fault was received from the remote endpoint. 0x803d0013 (-2143485933 WS_E_ENDPOINT_FAULT_RECEIVED)

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 "Basics: Requesting certificates via Certificate Enrollment Web Services (CEP, CES) ".

certreq with -kerberos and -submit: dialog "Certificate Request Processor" with "0x803d0013 (-2143485933 WS_E_ENDPOINT_FAULT_RECEIVED)"

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.

Cause (delegation of) Kerberos authentication

Most often, the WS_E_ENDPOINT_FAULT_RECEIVED error code means that Kerberos authentication has failed. Possible causes can be:

  • The user account of the requesting user may not be delegated.
  • The user account of the requesting user may not request certificates from the certification authority.
  • The user account does not have the "Request Certificates" permission on the target certification authority (ensured by membership in "Authenticated Users" in the default setting).
  • The CES server is not allowed to perform delegated authentication.
  • The CES service account (usually represented by membership in the IIS_IUSRS security group) must have the "Impersonate a client after authentication" (SeImpersonatePrivilege) user right.
  • Credential Guard does not support Kerberos unconstrained delegation, so Kerberos delegation must be constrained.

Cause Key based Renewal

  • If Key based Renewal is used, the error can also occur if the account under which the IIS application pool (WSEnrollmentServer) is running does not have read permission on the certification authority. In this case, the CES will log Event no. 8 .
  • If Key based Renewal is used, the error can also occur if the certification authority has not set the EDITF_ENABLERENEWONBEHALFOF flag. In this case, the CES will log Event no. 9 .

Other causes

  • The certificate request was successfully sent to the certification authority, but failed there. In this case, more details are displayed in the error message.

Details

The user account of the requesting user may not be delegated

If the attribute "Account is sensitive and cannot be delegated" (LDAP flag ADS_UF_NOT_DELEGATED ) is set on the user account, delegated authentication cannot be performed.

User properties, "Account" tab: "Account is sensitive and cannot be delegated" enabled (marked in yellow)

If the setting is changed on the user account, the requesting user must log on again once for the change to take effect.

The user account of the requesting user may not request certificates from the certification authority

In this example, the user's "Request Certificates" permission on the certification authority has been removed. By default, the "Authenticated Users" have the "Request Certificates" permission.

Properties of ADCS Labor Issuing CA 2, "Security" tab: "Request Certificates" set to Deny for the user (marked in yellow)

The CES server is not allowed to perform delegated authentication

The delegation configuration depends on how the CES was set up. For details, see the article "Overview of the possible delegation settings for the Certificate Enrollment Web Service (CES)".

The IIS_IUSRS security group must have the "Impersonate a client after authentication" user right

The service account under which the CES service is operated (the identity of the IIS application pool) requires the "Impersonate a Client after Authentication" user right. For more details, see the article "Required Windows security permissions for the Certificate Enrollment Web Service (CES) ".

The certificate request was successfully sent to the certification authority, but failed there

The error message can also occur if the certificate request could be sent successfully to the certification authority - i.e. the CES works properly - but the certificate request fails on the certification authority. In this case, however, the WS_E_ENDPOINT_FAULT_RECEIVED error code occurs in combination with the failed certificate request error message.

In the example below, the certificate request fails because the user does not have an e-mail address, but this should be added to the issued certificate according to the settings in the certificate template. Accordingly, the error message 0x80094812 (-2146875374 CERTSRV_E_SUBJECT_EMAIL_REQUIRED) is also issued.

"Certificate Enrollment": Request denied, "The EMail name is unavailable and cannot be added to the Subject or Subject Alternate name." 0x80094812 CERTSRV_E_SUBJECT_EMAIL_REQUIRED

In the example below, the certificate request fails because the configured certificate template contains an invalid issuance policy. Accordingly, the error message 0x800b0113 (-2146762477 CERT_E_INVALID_POLICY) is also issued.

"Certificate Enrollment": Request denied, "The certificate has invalid policy." 0x800b0113 (-2146762477 CERT_E_INVALID_POLICY)