The certification authority service does not start and throws the error message "The system cannot find the file specified. 0x2 (WIN32: 2 ERROR_FILE_NOT_FOUND)"

Assume the following scenario:

  • A certification authority is installed.
  • The installation is successful, but the certification authority service does not start after the installation.
  • When trying to start the certification authority service from the Certification Authority management console, you receive the following error message:
The system cannot find the file specified. 0x2 (WIN32: 2 ERROR_FILE_NOT_FOUND)
The policy module for a CA is missing or incorrectly registered. To view or change policy module settings, right-click on the CA, click Properties, and then click the Policy Module tab.

Dialog "Microsoft Active Directory Certificate Services": "The system cannot find the file specified. 0x2 (WIN32: 2 ERROR_FILE_NOT_FOUND)"

A corresponding event no. 100 can also be found in the Event Viewer of the certification authority:

Active Directory Certificate Services did not start: Could not load or verify the current CA certificate. ADCS Labor Root CA The system cannot find the file specified. 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND).

Event 100, CertificationAuthority: "Active Directory Certificate Services did not start" with 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND)

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.

The error message in the Certification Authority management console is confusing because it talks about a faulty policy module, but the policy module is not the cause of the problem.

CACertHash registry value empty

The error will occur if the "CACertHash" value in the registry of the certification authority is empty.

This is located in the following path:

HKLM\System\CurrentControlSet\Services\CertSvc\Configuration\{Common-Name-der-Zertifizierungsstelle}

Registry Editor, CertSvc\Configuration: context menu "Modify..." for the value CACertHash

See also article "The certification authority service does not start and throws the error message "The parameter is incorrect. 0x80070057 (WIN32: 87 ERROR_INVALID_PARAMETER)" " for more information.

CACertHash registry value refers to non-existent certificate

The error will occur if the CACertHash registry value refers to a certification authority certificate that does not exist on the server, for example because it has not yet been restored after the restore from backup or migration to another server .

See also:

No permission in the key storage provider (KSP) of the hardware security module

In this case, a SafeNet hardware security module was used.

During the installation of the certification authority, only the installing user's account was granted permission on the hardware security module (HSM) partition in the SafeNet Key Storage Provider Config Wizard.

The installation of the certification authority was successful, but afterwards the service did not start.

The certification authority service is run with the identity "NT Authority\SYSTEM". This account must also be granted permission on the partition of the HSM that is used.

SafeNet Key Storage Provider Config Wizard: dialog "Success": "The slot was successfully and securely registered!"