個別証明書と関連した中間 CA および他の証明書チェーン除法を取得します。
curl -X POST \
https://daas.digicert.com/apicontroller/v1/certificate/getCertChainDetails \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}' \
-d '{
"accountId": "126993",
"certChainId": "4852981",
"divisionId": "69748"
}'
import requests
url = "https://daas.digicert.com/apicontroller/v1/certificate/getCertChainDetails"
payload = "{\n \"accountId\": \"126993\",\n \"certChainId\": \"4852981\",\n \"divisionId\": \"69748\"\n}"
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://daas.digicert.com/apicontroller/v1/certificate/getCertChainDetails"
payload := strings.NewReader("{\n \"accountId\": \"126993\",\n \"certChainId\": \"4852981\",\n \"divisionId\": \"69748\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-DC-DEVKEY", "{{api_key}}")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
var request = require("request");
var options = { method: 'POST',
url: 'https://daas.digicert.com/apicontroller/v1/certificate/getCertChainDetails',
headers:
{ 'Content-Type': 'application/json',
'X-DC-DEVKEY': '{{api_key}}' },
body:
{ accountId: '126993',
certChainId: '4852981',
divisionId: 69748 },
json: true };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
{
"data": {
"certChainDetailsList": [
{
"certDetailsList": [
{
"status": "Valid",
"expirationDate": 2145916799000,
"keyAlgorithm": "RSA2048",
"algorithmType": "SHA256withRSA",
"issueDate": 1251763200000,
"issuerDN": "CN=DigiCert Root Certificate Authority - G2, O=\"DigiCert Inc.\", L=Citytown, ST=Arizona, C=US",
"subject": "CN=DigiCert Root Certificate Authority - G2,O=DigiCert \\, Inc.,L=Citytown,ST=Arizona,C=US(root)",
"errors": null
},
{
"status": "Valid",
"expirationDate": 1935558000000,
"keyAlgorithm": "RSA2048",
"algorithmType": "SHA256withRSA",
"issueDate": 1304406000000,
"issuerDN": "CN=DigiCert Root Certificate Authority - G2, O=\"DigiCert Inc.\", L=Citytown, ST=Arizona, C=US",
"subject": "CN=DigiCert Secure Certificate Authority - G2,OU=http://certs.digi.com/repository/,O=DigiCert\\, Inc.,L=CitytownST=Arizona,C=US(intermediate)",
"errors": null
},
{
"status": "Valid",
"expirationDate": 1575457523000,
"keyAlgorithm": "RSA2048",
"algorithmType": "SHA256withRSA",
"issueDate": 1503317044000,
"issuerDN": "CN=DigiCert Secure Certificate Authority - G2, OU=http://certs.digi.com/repository/, O=\"DigiCert Inc.\", L=CitytownST=Arizona, C=US",
"subject": "CN=*.flipkart.com,OU=Domain Control Validated(end-entity)",
"errors": null
}
],
"overallStatus": "Primary Chain (Valid)",
"isAdditionalCertChain": null,
"isValidChain": true
}
]
}
}
名前 | 申請/オプション | 種別 | 説明 |
---|---|---|---|
accountId | 必須 | string | アカウント ID |
divisionIds | 任意 | array | 管理グループ ID |
certChainId | 必須 | string | 証明書チェーン ID証明書チェーン ID を 「エンドポイント評価から取得する」 申請から取得します。 |
名前 | 種別 | 説明 |
---|---|---|
data | object | コンテナ |
.. certChainDetailsList | array | 証明書チェーン詳細コンテナ |
.. .. certDetailsList | array | 証明書チェーン詳細コンテナ |
.. .. .. status | string | ステータス |
.. .. .. expirationDate | string | 有効期限日 |
.. .. .. keyAlgorithm | string | 暗号アルゴリズム |
.. .. .. algorithmType | string | SHA タイプ |
.. .. .. issueDate | string | 発行日 |
.. .. .. issuerDN | string | 発行者名 |
.. .. .. subject | string | 証明書サブジェクト |
.. .. .. errors | array | エラーメッセージ: |
.. .. overallStatus | string | 全体ステータス |
.. .. isAdditionalCertChain | bool | 見込み証明書チェーン以外の証明書が確認されたかどうか |
.. .. isValidChain | bool | チェーンが有効かどうか |