具有來源 CertificationAuthority 和 ID 49 的事件收集規則

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

無法檢查撤銷

Knowledge Base article:

摘要

鏈結或路徑驗證是一種處理序,在憑證鏈結於受信任的自我簽署憑證上終止之前,終端實體 (使用者或電腦) 憑證和所有憑證授權單位 (CA) 憑證都會藉由該處理序以階層方式處理。通常,這是根 CA 憑證。如果 CA 憑證的可用性、有效性和鏈結驗證有問題,Active Directory 憑證服務 (AD CS) 啟動會失敗。

解決方式

載入和確認有效的 CA 憑證和鏈結

您必須確認有效的憑證授權單位 (CA) 憑證可供存取,以便進行憑證鏈結驗證。您可以透過確認下列事項,解決與找出有效 CA 憑證相關聯的問題:

若要執行這些程序,您必須擁有管理 CA 權限,或者必須已被委派適當的權限。

確認主控 CA 的電腦上存在有效的 CA 憑證

若要確認主控 CA 的電腦上存在有效的 CA 憑證:

確認 AIA 容器內存在有效的 CA 憑證

若要確認 AIA 容器內存在有效的 CA 憑證:

驗證 CA 憑證鏈結

若要驗證 CA 憑證鏈結:

檢查並發佈 CRL

若要檢查並視需要發佈新的 CRL:

若要產生新的基本及 Delta CRL:

若要使用 Certutil 命令列工具建立 CRL:

若要使用 Certutil 命令列工具發佈 CRL 至 AD DS:

以 CRL 檔案的名稱取代 crlname.crl,並以您的 CA 名稱和執行 CA 的主機的名稱取代 CA 名稱和 CA 主機名稱,然後以您的 Active Directory 網域的命名空間取代 contoso 和 com。

其他

若要確認憑證授權單位 (CA) 憑證和鏈結有效:

Element properties:

TargetMicrosoft.Windows.CertificateServices.CARole.2016
CategoryEventCollection
EnabledTrue
Event_ID49
Event SourceMicrosoft-Windows-CertificationAuthority
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
RemotableTrue
Alert Message
AD CS 憑證授權單位憑證與鏈結驗證 - 未檢查憑證撤銷
事件描述:{0}
Event LogApplication

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
Alert WriteAction System.Health.GenerateAlert 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.49" 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">49</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"/>
<WriteAction ID="Alert" TypeID="Health!System.Health.GenerateAlert">
<Priority>2</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="AlertMessageID73782f4f349a427595c46cb8896563ed"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/EventDisplayNumber$</SuppressionValue>
<SuppressionValue>$Data/PublisherName$</SuppressionValue>
<SuppressionValue>$Data/LoggingComputer$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>