Requesting a certification authority certificate fails with error message "The certification authority's certificate contains invalid data. 0x80094005 (-2146877435 CERTSRV_E_INVALID_CA_CERTIFICATE)"

Assume the following scenario:

  • A certification authority certificate is requested from a certification authority
  • The certificate request fails with the following error message:
The certification authority's certificate contains invalid data. 0x80094005 (-2146877435 CERTSRV_E_INVALID_CA_CERTIFICATE)
Denied by Policy Module

Error dialog "Certificate Request Processor": "The certification authority's certificate contains invalid data. 0x80094005 (-2146877435 CERTSRV_E_INVALID_CA_CERTIFICATE)"

In addition, the certification authority accordingly logs event no. 53 :

Active Directory Certificate Services denied request 57 because The certification authority's certificate contains invalid data. 0x80094005 (-2146877435 CERTSRV_E_INVALID_CA_CERTIFICATE). The request was for CN=Invalid Path Length CA. Additional information: Denied by Policy Module

Event 53, CertificationAuthority: request 57 denied, "CERTSRV_E_INVALID_CA_CERTIFICATE", the request was for CN=Invalid Path Length CA

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.

Basically, this error occurs when the certification authority certificate has a certificate policy (Issuance Policy) or restriction (Application Policy) or a path length constraint that conflicts with the requested certificate. Examples may include:

  • The certification authority certificate has a path length constraint and a subordinate certification authority certificate is requested
  • The certificate policy (issuance policy) on a root certification authority was changed when the certification authority certificate was renewed

Details: The certification authority certificate has a path length constraint and a subordinate certification authority certificate is requested

This error occurs if the certification authority certificate has a path length constraint with the value "0" and is therefore not allowed to issue certification authority certificates. This behavior is a desired security feature and therefore cannot be disabled.

See also article "Basics: Path Length Constraint ".

Details: The certificate policy (issuance policy) on a root certification authority was changed when the certification authority certificate was renewed

The error can occur with a root certification authority when its certification authority certificate is renewed and the issuance policy is changed via capolicy.inf in the process.

Notepad, capolicy.inf: PolicyStatementExtension with InternalPolicy and InternalPolicy2 (highlighted, OID 1.3.6.1.4.1.99999.300.0.1)

A root certification authority will try to create a cross-certification between the new and the previous certification authority certificate when renewing the certification authority certificate (if a new key pair has been generated). However, if the issuance policies of the two certificates differ, this will fail.

Certificate dialog, "General" tab: intended purposes 1.3.6.1.4.1.99999.300.0.0 (highlighted) and "All application policies"

Certificate dialog, "General" tab: intended purposes 1.3.6.1.4.1.99999.300.0.0 and 1.3.6.1.4.1.99999.300.0.1 (highlighted)

The certification authority will retry the process every time the service is started and fail, so new failed requests will be generated over and over again.

Certification Authority console, "Failed Requests" of "ADCS Labor Test Root CA": four requests with 0x80094005 CERTSRV_E_INVALID_CA_CERTIFICATE

By the way, an interesting feature here is that the certificate request cannot be viewed.

Error dialog "Microsoft Active Directory Certificate Services": "The requested property value is empty. 0x80094004 (-2146877436 CERTSRV_E_PROPERTY_EMPTY)"

This is also shown accordingly in Event Viewer with event no. 102 .

Event 102, CertificationAuthority: "could not create cross certificate (1-2)", "The Certificate Policies extension is inconsistent."

Event 102, CertificationAuthority: "could not create cross certificate (2-1)", "The Certificate Policies extension is inconsistent."

In this case, the following options for a solution are available:

  • Accepting the problem.
  • Disabling the generation of the cross-certification authority certificates. See article "Disabling the generation of cross-certification authority certificates ".
  • When designing a root certification authority, consideration should be given to whether issuance policies should be included in root certification authority certificates at all.