Reguła zbierania danych dla zdarzenia o źródle CertificationAuthority i identyfikatorze 20

Microsoft.Windows.CertificateServices.CARole.6.2.CertSvcEvents.20 (Rule)

Usługi certyfikatów nie zostały uruchomione: problem z rejestrem.

Knowledge Base article:

Podsumowanie

Usługi certyfikatów Active Directory (AD CS) zapisują w rejestrze kluczowe ustawienia konfiguracyjne, a uszkodzenie lub usunięcie tych danych może uniemożliwić uruchomienie lub prawidłowe działanie tych usług.

Rozwiązania

Naprawienie klucza rejestru ValidityPeriod

Informacje konfiguracyjne urzędu certyfikacji (CA) są domyślnie zapisywane w kluczu rejestru HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration\nazwa CA.

Jeśli w dzienniku zdarzeń pojawi się komunikat z informacją, że klucz rejestru ValidityPeriod jest nieprawidłowy, można zaktualizować wpis rejestru, podając poprawne informacje.

Lokalizacja tego klucza rejestru to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration\nazwa CA\ValidityPeriod.

Poprawne ciągi dla tej wartości to „Seconds”, „Minutes”, „Hours”, „Days”, „Weeks”, „Months” i „Years”.

Aby wykonać tę procedurę, trzeba być członkiem lokalnej grupy Administratorzy lub mieć odpowiednie uprawnienia oddelegowane.

Uwaga: Nieprawidłowa edycja rejestru może poważnie uszkodzić system. Przed dokonaniem zmian w rejestrze należy utworzyć kopię zapasową ważnych danych.

Aby rozwiązać problemy związane z rejestrem:

Dodatkowe informacje

Aby sprawdzić zapisane w rejestrze ustawienia urzędu certyfikacji (CA):

Element properties:

TargetMicrosoft.Windows.CertificateServices.CARole.6.2
CategoryEventCollection
EnabledTrue
Event_ID20
Event SourceMicrosoft-Windows-CertificationAuthority
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
RemotableTrue
Alert Message
Ustawienia rejestru usług AD CS
Opis zdarzenia: {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.6.2.CertSvcEvents.20" Enabled="onEssentialMonitoring" Target="CSDisc!Microsoft.Windows.CertificateServices.CARole.6.2" 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">20</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="AlertMessageID1ed82a0b5585405a86ce20748a8aa821"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/EventDisplayNumber$</SuppressionValue>
<SuppressionValue>$Data/PublisherName$</SuppressionValue>
<SuppressionValue>$Data/LoggingComputer$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>