共用方式為


取得憑證回應

將一組憑證要求提交給憑證授權單位 (CA) 進行處理。

重要

憑證回應的數目可能超過要求數目。 某些設定檔範本可以設定為在伺服器上產生金鑰/要求,或具有外部憑證。

注意

本文中的 URL 相對於 API 部署期間所選擇的主機名稱,例如 https://api.contoso.com

要求

方法 要求 URL
POST /CertificateManagement/api/v1.0/requests/{id}/certificatedata

URL 參數

參數 描述
id 必要。 GUID 對應於要從中擷取原則的設定檔範本。

要求標頭

如需常見的要求標頭,請參閱CM REST API 服務詳細資料中的HTTP 要求和回應標頭

要求本文

要求本文包含下列屬性:

屬性 描述
pfxpassword 用來保護從呼叫傳回的任何個人資訊交換 (PFX) 結果的密碼。
certificaterequests 用戶端所產生的憑證要求清單。 要求必須使用 CertificateRequestGenerationOptions 物件中指定的參數來產生。 如需詳細資訊,請參閱 取得憑證要求世代選項
comments 字串,包含作業事件歷程記錄中記錄的任何其他批註。

回應

本節說明回應。

回應碼

程式碼 描述
200 [確定]
403 禁止
500 內部錯誤

回應標頭

如需常見的回應標頭,請參閱CM REST API 服務詳細資料中的HTTP 要求和回應標頭

回應本文

成功時,傳回 JSON 序列化 Microsoft.Clm.Shared.Certificates.Certificate 物件的清單,其中包含下列屬性:

屬性 描述
CertificateId 憑證 ID。
錯誤 處理憑證要求時遇到錯誤。
Flags 描述憑證的旗標。
IsExternal 布林值,指出憑證是否為外部憑證。
isKeyHistory 布林值,指出憑證是否為金鑰歷程記錄憑證。
isPfx 布林值,指出憑證要求回應是否為 PFX 格式。
isPkcs7 布林值,指出憑證要求回應是否為 PKCS#7 格式。
isServerGenerated 布林值,指出憑證是否由伺服器產生。
Pfx PFX 憑證 Blob。
Pkcs7 PKCS#7 憑證 Blob。
TemplateCommonName 憑證的憑證範本一般名稱。
UseLocalMachineStore 布林值,指出憑證是否為本機電腦憑證存放區。

範例

本節提供範例,將一組憑證要求提交至 CA 進行處理。

範例:要求

POST /CertificateManagement/api/v1.0/requests/C6BAD97C-F97F-4920-8947-BE980C98C6B5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MjMxS+tnj2FjOCUjYohDPo2bJk\r\nLFn1X4+fP6oMdWRO8VWGDAVLy1nnlvnHIiWst1oOKUAdY7kG42FjYQ4HoexrYwfe\r\nrCWubI8248BljPicszpZpP1wL7DTU6z+er/pSHN3tN9Z//be+hY0rbJ430KgNFzZ\r\nV6bEQIpKO6SJX4aL4h7GO9goqBtTT4XbV3yAHwxNdnZLId/4HPOEwSSTtey6eMAd\r\n"
    ]
}

範例:回應

HTTP/1.1 200 OK

[
    {
        "TemplateCommonName":"ContosoVirtualSmartCardLimitedRelease-KSP",
        "CertificateId":0,
        "Flags":65536,
        "UseLocalMachineStore":false,
        "Error":null,
        "Pkcs7":"MIIUhgYJKoZIhvcNAQcCoIIUdzCCFHMCAQMxCzAJBgUrDgMCGgUAMH0GCCsGAQUF\r\nBwwDoHEEbzBtMGcwIQIBAQYIKwYBBQUHBwExEjAQAgEAMAMCAQEMBklzc3VlZDBC\r\nAgECBgorBgEEAYI3CgoBMTEwLwIBADADAgEBMSUwIwYJKwYBBAGCNxURMRYEFKX+\r\nPFP5+eY7IqVYhhqNGso36YkfMAAwAKCCEhgwggXkMIIDzKADAgECAhBEPCpUtZzW\r\nnUwJsYqbAutVMA0GCSqGSIb3DQEBBQUAMEYxHjAcBgNVBAoTFU1pY3Jvc29mdCBD\r\nb3Jwb3JhdGlvbjEkMCIGA1UEAxMbTWljcm9zb2Z0IENvcnBvcmF0ZSBSb290IENB\r\nMB4XDTAzMDkxOTE5MjE0MFoXDTE5MDkxOTE5Mjg0MVowRjEeMBwGA1UEChMVTWlj\r\ncm9zb2Z0IENvcnBvcmF0aW9uMSQwIgYDVQQDExtNaWNyb3NvZnQgQ29ycG9yYXRl\r\nIFJvb3QgQ0EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCwlxxfvND/\r\nRSTgWHITf6YQcTz9M3hPStZ0N7akq7hcOBFmK3gDSw8ikTkh+2ux6ClEfN6PMy89\r\nFAmg3JFZppd5mkTgbyJk53G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AQUABIIBAAh8M9OdfUroL4G4KTi33r00870fCY3FFdjSAYVC81I7v/L70FaB\r\nysqM/hD0t8uzCF0PgHNHtFS2uB7TrQfGSItTGThzMu3QENpUzQBLeotvuBvg2YP5\r\nlYTQ5+7j4Q6bYw2Zo489894nfJSPy3fe10raHRsPqbGB+4SB403Mvlvc4A+OHK/I\r\n9jA8J7GBjeJKhfG3jOV/u0m+zvQ7mynttG2LRk+RHJjrVkq4uLo0ImTUue70Lzqj\r\ns2Dvd7aAJsOks4V6msQLQVGftF4WPrxMtpLnPzOK7n2MVnGxD6tXIqCDgvrbiffi\r\ne2+2JNFqiXxj/jTtmZSeDUJQpYnxVzcgoyI=\r\n",
        "Pfx":null,
        "IsExternal":false,
        "isServerGenerated":false,
        "isPfx":false,
        "isPkcs7":true,
        "isKeyHistory":false
    }
]

另請參閱