1. Resources
  2. Detection sources
  3. Event ID 4868

Event ID 4868: The certificate manager denied a pending certificate request

Written by an AD CS certification authority when a certificate manager denies a request the CA held as pending. Gives the Request ID and the account that decided: the other way a pending request can end, next to its issuance.

Log source
Windows Security log
Detection value
Context
Volume
Low (estimate)
Last updated
Audit subcategory
Audit Certification Services (Object Access, Success and Failure)
Logged on
Certification authority servers only
Event versions
0
Detects
Not read by our detection rules yet

When it is written

A certification authority (CA) running Active Directory Certificate Services holds a request as pending (4889) when its policy leaves the decision to a certificate manager: on an enterprise CA, a template that requires CA certificate manager approval or another policy setting; on a standalone CA, every request by default. A certificate manager (an account with Issue and Manage Certificates on the CA) then either issues the request, which writes 4887, or denies it, which writes 4868 to the CA's own Security log. Microsoft's interface denies only requests that are still pending.

The event gives the Request ID; the account that denied the request is in the event data, not in the message text. It needs the Audit Certification Services subcategory on the CA server and the "Issue and manage certificate requests" category in the CA's own audit filter. A domain controller logs it only if it also holds the CA role.

How to turn it on

Advanced audit policy subcategory Audit Certification Services, Success and Failure. Set it in a Group Policy object linked to the computers that write the event:

Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policy Configuration > Audit Policies > Object Access > Audit Certification Services
Microsoft's recommendation per computer role
ComputerAuditNote
Domain controllersSuccess if needed and Failure if neededMicrosoft marks every column "IF" (the same in its general and stronger baselines). Enable the subcategory when the server has the Active Directory Certificate Services role installed and you need to monitor AD CS events.
Member serversSuccess if needed and Failure if neededMicrosoft marks every column "IF" (the same in its general and stronger baselines). Enable the subcategory when the server has the Active Directory Certificate Services role installed and you need to monitor AD CS events.
WorkstationsNot loggedMicrosoft says the AD CS role cannot be installed on a client operating system.
Check the current setting
auditpol /get /subcategory:"Certification Services"
Based on vendor documentation.
Turn it on (local policy; a domain GPO overrides it)
auditpol /set /subcategory:"Certification Services" /success:enable /failure:enable
Based on vendor documentation.
The same on a Windows in another display language
auditpol /get /subcategory:"{0CCE9221-69AE-11D9-BED3-505054503030}"
Based on vendor documentation.

Run the commands in an elevated prompt on a computer that writes the event. Subcategory settings take effect only when the security option Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings is enabled (the default), and a Group Policy object that sets advanced audit policy replaces local changes at its next refresh. Microsoft's advanced audit policy reference

Two settings must both be on, on every CA server:

  1. The Audit Certification Services subcategory, Success and Failure (Microsoft's PKI monitoring guide asks for both).
  2. The Issue and manage certificate requests category in the CA's own audit filter: the Auditing tab of the CA's properties in the Certification Authority console, or bit value 4 of the CA's AuditFilter registry value (all seven categories together are 127). Microsoft's procedure restarts Certificate Services after the filter is changed. To read the current value on the CA: certutil -getreg CA\AuditFilter.

Microsoft notes that the audit filter alone does not make Windows write the event, and the subcategory alone does not either.

Fields

In Event Viewer order. The field names are those of the event XML, from the event template that ships with Windows.

FieldWhat it holdsSince
Request IDRequestIdThe certificate manager denied a pending certificate request.ID of the request in the CA database, a decimal number (shown as Request ID). The same ID appears in 4886 when the request arrived, in 4889 when it was set to pending and in 4873 or 4874 if it was changed while pending.v0
SubjectUserSidSID of the account that denied the request. Not shown in the message text; read it from the event data (the XML or the Details tab). Event Viewer resolves it to a name.v0
SubjectUserNameName of the account that denied the request. Not shown in the message text.v0
SubjectDomainNameDomain of that account, as a NetBIOS name. Not shown in the message text.v0
SubjectLogonIdLogon ID of the session that denied the request, in hexadecimal. Matches the logon event (4624) of that session on the CA server, which gives the source address when the service that received the logon passed it to Windows; Microsoft notes that some logons carry no network details. Not shown in the message text.v0

Values to know

SubjectUserName

ValueMeaningSignal
A certificate manager named in your CA role assignmentOrdinary review of a pending requestExpected
Any other accountAn account you did not expect to hold Issue and Manage CertificatesThe denial itself protects the CA; the right behind it is what needs checking (4882, 4890).Worth knowing

Request ID RequestId

ValueMeaningSignal
An ID that went pending (4889) and was not changedA request refused after reviewExpected
An ID that was changed while pending (4873, 4874)A certificate manager edited the request before refusing itMicrosoft's current guidance tells certificate managers not to correct requests and to ask for a new one instead.Worth knowing

Volume and noise

Low. Only CAs that hold requests for approval write it, one event per denied request. Microsoft's guidance asks certificate managers to deny a pending request when the requester is not authorized, the request does not match the certificate profile, the approval evidence is missing, or the request is no longer needed, so denials follow the CA's review work. Microsoft's PKI event table rates the event low; Appendix L of its Active Directory monitoring guidance rates it medium.

Keeping it manageable

  • Keep every event: the volume is low, and each one closes a pending request (4889) that you may be following by its Request ID.
  • Compare SubjectUserName with the accounts that hold Issue and Manage Certificates on the CA. Only they can deny requests, so a denial by any other account means the CA's permissions are not what you recorded: look for 4882 and 4890.
  • Microsoft asks certificate managers to record the request ID, the decision authority and the reason for every denial. The event gives the first two only: match it to that record.

Sample event

Version 0, with made-up values.

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-a5ba-3e3b0328c30d}" />
    <EventID>4868</EventID>
    <Version>0</Version>
    <Level>0</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8020000000000000</Keywords>
    <TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
    <EventRecordID>1048576</EventRecordID>
    <Correlation />
    <Execution ProcessID="712" ThreadID="2408" />
    <Channel>Security</Channel>
    <Computer>CA01.corp.example.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="RequestId">4152</Data>
    <Data Name="SubjectUserSid">S-1-5-21-1004336348-1177238915-682003330-1153</Data>
    <Data Name="SubjectUserName">certmgr-anna</Data>
    <Data Name="SubjectDomainName">CORP</Data>
    <Data Name="SubjectLogonId">0x5d2b81</Data>
  </EventData>
</Event>

Attacks this event reveals

No detection rule or detection logic in our library reads this event yet. It is documented here because it sits next to the events they read: it explains them, follows from them or is the trace a defender looks for around them (see Related events).

Frequently asked questions

What is the difference between event 4868 and event 4888?

4868 records a certificate manager denying a request that the CA had held as pending. 4888 records Certificate Services denying a request. Microsoft's event lists separate them by these titles only and do not say whether a certificate manager's denial also writes 4888, so check once on your CA which events a denial produces.

Does event 4868 say why the request was denied?

No. It gives the Request ID and, in the event data, the account that denied it. Microsoft asks certificate managers to record the decision reason with the request ID in their issuance record, and the CA database keeps the denied request in the Failed Requests view of the Certification Authority console.

Who can deny a pending request?

An account with the Issue and Manage Certificates permission on the CA (the certificate manager role), within the certificate manager restrictions the CA may have (4890). Microsoft's guidance is to test that an account without the permission cannot issue or deny a request.

References