Publishing a certificate template on a CA fails with error message "The template information on the CA cannot be modified at this time. This is most likely because the CA service is not running or there are replication delays. Access is denied. 0x80070005 (WIN32: 5 ERROR_ACCESS_DENIED)"

Assume the following scenario:

  • An administrator publishes a certificate template on a certification authority.
  • The operation fails with the following error message:
The template information on the CA cannot be modified at this time. This is most likely because the CA service is not running or there are replication delays. Access is denied. 0x80070005 (WIN32: 5 ERROR_ACCESS_DENIED)

Dialog "Updating Templates": "The template information on the CA cannot be modified at this time." with 0x80070005 (WIN32: 5 ERROR_ACCESS_DENIED)

Cause

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:

  • The permissions of the certification authority computer on the pKIEnrollmentService object in the Active Directory are incorrect.

Details: The permissions of the certification authority computer on the pKIEnrollmentService object in the Active Directory are incorrect.

The "Write" right is not sufficient. Besides "Write", the following are needed:

  • Delete
  • Modify
  • Modify Owner

Properties of CN=Fabrikam Issuing CA 2, "Security" tab: the computer account ADCSCA03$ has Read and Write