憑證服務已停止
憑證授權單位 (CA) 需要足夠的系統資源和作業系統元件才能正確運作。如果伺服器的記憶體或硬碟空間不足,或是作業系統元件無法使用,則嘗試啟動 Active Directory 憑證服務 (AD CS) 可能會失敗。
重新啟動憑證授權單位
若要執行此程序,您必須擁有管理 CA 權限,或者必須已被委派適當的權限。
若要修正服務關機:
在主控 CA 的電腦上,按一下 [開始],指向 [系統管理工具],然後按一下 [服務]。
找出 Active Directory 憑證服務 (AD CS)。
確認 AD CS 未執行,然後嘗試重新啟動服務。
如果服務沒有啟動,請重新啟動電腦,然後嘗試再次重新啟動 AD CS。
如果問題沒有解決,需要連絡 Microsoft 客戶服務與支援部門時,可以使用「建立偵錯記錄檔」和「啟用 CryptoAPI 2.0 診斷」程序編譯對您有用的資訊。
建立偵錯記錄
若要建立偵錯記錄:
在主控 CA 的電腦上,按一下 [開始],鍵入 cmd 並按 ENTER。
鍵入 certutil -setreg ca\debug 0xffffffe3 並按 ENTER。
按一下 [開始],指向 [系統管理工具],然後按一下 [服務]。
選取 [Active Directory 憑證服務],然後按一下 [啟動]。
重現問題之後,在 %windir% 目錄中找出包含進階診斷資訊的檔案 certsrv.log。
產生診斷之後,開啟命令提示字元視窗以停用偵錯。
輸入 certutil -delreg ca\debug 並按 ENTER。
啟用 CryptoAPI 2.0 診斷
若要啟用 CryptoAPI 2.0 診斷:
在主控 CA 的電腦上,按一下 [開始],指向 [系統管理工具],然後按一下 [事件檢視器]。
在主控台樹狀目錄中,展開 [事件檢視器]、[應用程式及服務記錄檔]、[Microsoft]、[Windows] 和 [CAPI2]。
在 [可操作] 上按一下滑鼠右鍵,然後按一下 [啟用記錄]。
按一下 [開始],指向 [系統管理工具],然後按一下 [服務]。
在 [Active Directory 憑證服務] 上按一下滑鼠右鍵,然後按一下 [重新啟動]。
若要確認 CA 服務可供使用:
在主控 CA 的電腦上,按一下 [開始],輸入 cmd 並按 ENTER。
輸入 certutil -config <CAconfig> -ping ,然後按 ENTER。
CAconfig 是 CA 組態字串,其格式為 CAhostname\CAname。
Target | Microsoft.Windows.CertificateServices.CARole.2016 | ||
Category | EventCollection | ||
Enabled | True | ||
Event_ID | 38 | ||
Event Source | Microsoft-Windows-CertificationAuthority | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | High | ||
Remotable | True | ||
Alert Message |
| ||
Event Log | Application |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.EventProvider | Default |
Alert | WriteAction | System.Health.GenerateAlert | Default |
WriteToDB | WriteAction | Microsoft.SystemCenter.CollectEvent | Default |
<Rule ID="Microsoft.Windows.CertificateServices.CARole.2016.CertSvcEvents.38" 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">38</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="Alert" TypeID="Health!System.Health.GenerateAlert">
<Priority>2</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="AlertMessageID389c65a60547472c94bd08b22f4e565f"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
</WriteAction>
</WriteActions>
</Rule>