Performance problems with auditing of "Start and stop Active Directory Certificate Services"

When configuring the auditing settings of a certification authority, one is inclined to select the "Start and Stop Active Directory Certificate Services" option. However, this option may cause problems in some circumstances.

CA properties, "Auditing" tab: "Start and stop Active Directory Certificate Services" enabled (marked in yellow)

If this option is active, a checksum is calculated over the certification authority database when the certification authority service is stopped and started and written to the event log (events no. 4880 and 4881 ).

Event 4881: "Certificate Services stopped." with the Certificate Database Hash (marked in yellow)

Event 4880: "Certificate Services started." with the Certificate Database Hash (marked in yellow)

The duration of the calculation of this checksum depends on the size of the certification authority database. For a newly installed certification authority, this is still unproblematic due to the small database size.

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.

However, the larger the database becomes over time, the longer it takes to create the checksum. During this time, the certification authority service appears to "hang" - it remains in the "starting" or "stopping" state, possibly for several minutes. This can cause problems in the following situations in particular:

The "Start and Stop Certificate Services" option should therefore only be activated if the generated event is actually evaluated in a meaningful way, and the associated disadvantages are known and accepted.

This can be achieved very easily via the command line with the following command:

certutil -setreg CA\Auditfilter -1

Afterwards, the certification authority service must be restarted.

External sources