針對 SCEP 布建的憑證傳遞至 Microsoft Intune 中的裝置進行疑難解答

本文提供疑難解答指引,協助您調查當您使用簡單憑證註冊通訊協定 (SCEP) 在 Intune 中布建憑證時,將憑證傳遞至裝置。 在網路裝置註冊服務 (NDES) 伺服器從證書頒發機構單位 (CA) 收到要求的裝置憑證之後,它會將該憑證傳回裝置。

本文適用於 SCEP 通訊工作流程的步驟 5;將憑證傳遞至提交憑證要求的裝置。

檢閱證書頒發機構單位

當 CA 發出憑證時,您會在 CA 上看到類似下列範例的專案:

已發行憑證範例的螢幕快照。

檢閱裝置

Android

針對裝置系統管理員註冊的裝置,您會看到類似下圖的通知,提示您安裝憑證:

Android 通知的螢幕快照。

針對 Android Enterprise 或 Samsung Knox,憑證安裝是自動且無訊息的。

若要在Android上檢視已安裝的憑證,請使用第三方憑證檢視應用程式。

您也可以檢閱 裝置 OMADM 記錄。 尋找類似下列範例的專案,這些範例會在安裝憑證時記錄:

跟憑證

2018-02-27T04:50:52.1890000    INFO    Event     com.microsoft.omadm.platforms.android.certmgr.state.NativeRootCertInstallStateMachine     9595        9    Root cert '17…' state changed from CERT_INSTALL_REQUESTED to CERT_INSTALL_REQUESTED
2018-02-27T04:53:31.1300000    INFO    Event     com.microsoft.omadm.platforms.android.certmgr.state.NativeRootCertInstallStateMachine     9595        0    Root cert '17…' state changed from CERT_INSTALL_REQUESTED to CERT_INSTALLING
2018-02-27T04:53:32.0390000    INFO    Event     com.microsoft.omadm.platforms.android.certmgr.state.NativeRootCertInstallStateMachine     9595       14    Root cert '17…' state changed from CERT_INSTALLING to CERT_INSTALL_SUCCESS

透過SCEP布建的憑證

2018-02-27T05:16:08.2500000    VERB    Event     com.microsoft.omadm.platforms.android.certmgr.CertificateEnrollmentManager    18327       10    There are 1 requests
2018-02-27T05:16:08.2500000    VERB    Event     com.microsoft.omadm.platforms.android.certmgr.CertificateEnrollmentManager    18327       10    Trying to enroll certificate request: ModelName=AC_51…%2FLogicalName_39907…;Hash=1677525787
2018-02-27T05:16:20.6150000    VERB    Event     org.jscep.transport.UrlConnectionGetTransport    18327       10    Sending GetCACert(ca) to https://<server>-contoso.msappproxy.net/certsrv/mscep/mscep.dll?operation=GetCACert&message=ca
2018-02-27T05:16:20.6530000    VERB    Event     org.jscep.transport.UrlConnectionGetTransport    18327       10    Received '200 OK' when sending GetCACert(ca) to https://<server>-contoso.msappproxy.net/certsrv/mscep/mscep.dll?operation=GetCACert&message=ca
2018-02-27T05:16:21.7460000    VERB    Event     org.jscep.transport.UrlConnectionGetTransport    18327       10    Sending GetCACaps(ca) to https://<server>-contoso.msappproxy.net/certsrv/mscep/mscep.dll?operation=GetCACaps&message=ca
2018-02-27T05:16:21.7890000    VERB    Event     org.jscep.transport.UrlConnectionGetTransport    18327       10    Received '200 OK' when sending GetCACaps(ca) to https://<server>-contoso.msappproxy.net/certsrv/mscep/mscep.dll?operation=GetCACaps&message=ca
2018-02-27T05:16:28.0340000    VERB    Event     org.jscep.transaction.EnrollmentTransaction    18327       10    Response: org.jscep.message.CertRep@3150777b[failInfo=<null>,pkiStatus=SUCCESS,recipientNonce=Nonce [GUID],messageData=org.spongycastle.cms.CMSSignedData@27cc8998,messageType=CERT_REP,senderNonce=Nonce [GUID],transId=TRANSID]
2018-02-27T05:16:28.2440000    INFO    Event     com.microsoft.omadm.platforms.android.certmgr.state.NativeScepCertInstallStateMachine    18327       10    SCEP cert 'ModelName=AC_51…%2FLogicalName_39907…;Hash=1677525787' state changed from CERT_ENROLLED to CERT_INSTALL_REQUESTED
2018-02-27T05:18:44.9820000    INFO    Event     com.microsoft.omadm.platforms.android.certmgr.state.NativeScepCertInstallStateMachine    18327        0    SCEP cert 'ModelName=AC_51…%2FLogicalName_39907…;Hash=1677525787' state changed from CERT_INSTALL_REQUESTED to CERT_INSTALLING
2018-02-27T05:18:45.3460000    INFO    Event     com.microsoft.omadm.platforms.android.certmgr.state.NativeScepCertInstallStateMachine    18327       14    SCEP cert 'ModelName=AC_51…%2FLogicalName_39907…;Hash=1677525787' state changed from CERT_INSTALLING to CERT_ACCESS_REQUESTED
2018-02-27T05:20:15.3520000    INFO    Event     com.microsoft.omadm.platforms.android.certmgr.state.NativeScepCertInstallStateMachine    18327       21    SCEP cert 'ModelName=AC_51…%2FLogicalName_39907…;Hash=1677525787' state changed from CERT_ACCESS_REQUESTED to CERT_ACCESS_GRANTED

iOS/iPadOS

在 iOS/iPadOS 或 iPadOS 裝置上,您可以在 [裝置管理 配置檔] 底下檢視憑證。 向下切入以查看已安裝憑證的詳細數據。

裝置管理 配置檔下 iOS 憑證的螢幕快照。

您也可以在 iOS 偵錯紀錄中找到類似下列的專案:

Debug 18:30:53.691033 -0500 profiled Performing synchronous URL request: https://<server>-contoso.msappproxy.net/certsrv/mscep/mscep.dll?operation=GetCACert&message=SCEP%20Authority\  
Debug 18:30:54.640644 -0500 profiled Performing synchronous URL request: https://<server>-contoso.msappproxy.net/certsrv/mscep/mscep.dll?operation=GetCACaps&message=SCEP%20Authority\ 
Debug 18:30:55.487908 -0500 profiled Performing synchronous URL request: https://<server>-contoso.msappproxy.net/certsrv/mscep/mscep.dll?operation=PKIOperation&message=MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwGggCSABIIZfzCABgkqhkiG9w0BBwOggDCAAgEAMYIBgjCCAX4CAQAwZjBPMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxHDAaBgoJkiaJk/IsZAEZFgxmb3VydGhjb2ZmZWUxGDAWBgNVBAMTD0ZvdXJ0aENvZmZlZSBDQQITaAAAAAmaneVjEPlcTwAAAAAACTANBgkqhkiG9w0BAQEFAASCAQCqfsOYpuBToerQLkw/tl4tH9E+97TBTjGQN9NCjSgb78fF6edY0pNDU+PH4RB356wv3rfZi5IiNrVu5Od4k6uK4w0582ZM2n8NJFRY7KWSNHsmTIWlo/Vcr4laAtq5rw+CygaYcefptcaamkjdLj07e/Uk4KsetGo7ztPVjSEFwfRIfKv474dLDmPqp0ZwEWRQG 
Debug 18:30:57.285730 -0500 profiled Adding dependent Microsoft.Profiles.MDM to parent www.windowsintune.com.SCEP.ModelName=AC_51bad41f.../LogicalName_1892fe4c...;Hash=-912418295 in domain ManagedProfileToManagingProfile to system\ 
Default 18:30:57.320616 -0500 profiled Profile \'93www.windowsintune.com.SCEP.ModelName=AC_51bad41f.../LogicalName_1892fe4c...;Hash=-912418295\'94 installed.\ 

Windows

在 Windows 裝置上,確認憑證已傳遞:

  • 執行 eventvwr.msc 以開啟 事件檢視器。 移至應用程式和服務記錄>Microsoft>Windows>DeviceManagement-Enterprise-Diagnostic-Provider>管理員 並尋找事件 39。 此事件的一般描述應為: SCEP:已成功安裝憑證。

    Windows 應用程式記錄檔中事件 39 的螢幕快照。

若要檢視裝置上的憑證,請執行 certmgr.msc 以開啟憑證 MMC,並確認已在個人存放區中的裝置上正確安裝根和 SCEP 憑證:

  1. 移至本機計算機 (憑證) >受信任的跟證書授權>單位憑證,並確認來自 CA 的跟證書存在。 [ 發行至 ] 和 [ 發行者] 的 值會相同。
  2. 在 [憑證 MMC] 中,移至 [ 憑證 – 目前的使用者>個人>憑證],並確認要求的憑證存在,且 [發行者 ] 等於 CA 的名稱。

針對失敗進行疑難解答

Android

若要針對憑證傳遞進行疑難解答,請檢閱記錄在 OMA DM 記錄檔中的錯誤。

iOS/iPadOS

若要針對憑證傳遞進行疑難解答,請檢閱裝置偵錯記錄中記錄的錯誤。

Windows

若要針對裝置上未安裝憑證的問題進行疑難解答,請在 Windows 事件記錄檔中尋找建議問題的錯誤:

  • 在裝置上,執行 eventvwr.msc 以開啟 事件檢視器,然後移至應用程式和服務記錄>Microsoft>Windows>DeviceManagement-Enterprise-Diagnostic-Provider>管理員

將憑證傳遞和安裝到裝置時發生錯誤,通常與 Windows 作業有關,而不是 Intune。

後續步驟

如果憑證成功部署至裝置,但 Intune 未回報成功,請參閱向 Intune 報告 NDES 報告,以針對報告進行疑難解答。