具有源 CertificationAuthority 和 ID 93 的事件的收集规则

Microsoft.Windows.CertificateServices.CARole.2016.CertSvcEvents.93 (Rule)

证书服务无法在 NTAuth 存储中找到 CA 证书。

Knowledge Base article:

摘要

Active Directory 证书服务 (AD CS) 要求对 Active Directory 域服务 (AD DS) 中的某些对象具有读取访问权限,在某些情况下还要求具有写入权限。如果无法访问这些 Active Directory 对象,则可能会妨碍 AD CS 启动。

解决方案

确保 AD CS 可将 CA 证书发布到 NTAuth 存储

要解决此问题,请执行以下操作:

如果在查找 CA 证书以将其发布到 NTAuth 存储时遇到问题,请在向 NTAuth 存储发布前,使用在计算机上查找 CA 证书文件”部分中的过程。

要执行这些过程,您必须拥有管理 CA 权限,或者您必须被委派了适当的权限。

确认 NTAuth 存储权限

要检查 NTAuth 容器的 CA 权限,请执行以下操作:

“确认 NTAuth 存储的内容”

要检查 Active Directory 域服务 (AD DS) 中 NTAuth 存储的内容,请执行以下操作:

“在计算机上查找 CA 证书文件”

要在本地文件系统中查找 CA 证书文件,请执行以下操作:

默认情况下,此文件存储在 %systemroot%\system32\certsrv\certenroll 中。

Element properties:

TargetMicrosoft.Windows.CertificateServices.CARole.2016
CategoryEventCollection
EnabledTrue
Event_ID93
Event SourceMicrosoft-Windows-CertificationAuthority
Alert GenerateFalse
RemotableTrue
Event LogApplication

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
WriteToCertSvcEvents WriteAction Microsoft.Windows.CertificateServices.CARole.CertSvcEvents.Publisher Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectEvent Default

Source Code:

<Rule ID="Microsoft.Windows.CertificateServices.CARole.2016.CertSvcEvents.93" Enabled="true" Target="CSDisc!Microsoft.Windows.CertificateServices.CARole.2016" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">93</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-CertificationAuthority</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectEvent"/>
<WriteAction ID="WriteToCertSvcEvents" TypeID="Microsoft.Windows.CertificateServices.CARole.CertSvcEvents.Publisher"/>
</WriteActions>
</Rule>