個別証明書向けの詳細を取得します。詳細には、識別名情報、CA 情報、有効期間、暗号タイプ、およびその他が含まれます。
curl -X POST \
https://daas.digicert.com/apicontroller/v1/certificate/getCertificateDetails \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}' \
-d '{
"accountId": "126993",
"certificateId": "fb92ee3a2fd0cb6549e58c252f8787f467bfbeff",
"divisionId": "69748"
}'
import requests
url = "https://daas.digicert.com/apicontroller/v1/certificate/getCertificateDetails"
payload = "{\n \"accountId\": \"126993\",\n \"certificateId\": \"fb92ee3a2fd0cb6549e58c252f8787f467bfbeff\",\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/getCertificateDetails"
payload := strings.NewReader("{\n \"accountId\": \"126993\",\n \"certificateId\": \"fb92ee3a2fd0cb6549e58c252f8787f467bfbeff\",\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/getCertificateDetails',
headers:
{ 'Content-Type': 'application/json',
'X-DC-DEVKEY': '{{api_key}}' },
body:
{ accountId: '126993',
certificateId: 'fb92ee3a2fd0cb6549e58c252f8787f467bfbeff',
divisionId: 69748 },
json: true };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
{
"data": {
"certId": "fb92ee3a2fd0cb6549e58c252f8787f467bfbeff",
"serialNum": "2bf1c0d8a20fef721f67011d6231c16e",
"validFrom": 1523318400000,
"expiryDate": 1591660799000,
"subject": "CN=*.aparat.com,OU=EssentialSSL Wildcard,OU=Domain Control Validated",
"issuedBy": "CN=COMODO RSA Domain Validation Secure Server CA, O=COMODO CA Limited, L=Salford, ST=Greater Manchester, C=GB",
"cn": "*.aparat.com",
"ca": "Comodo",
"firstDiscoveredDate": 1561409074447,
"keyLength": 2048,
"algoType": "SHA256withRSA",
"accountId": "126993",
"certStatusString": "VALID",
"owner": null,
"org": null,
"orgUnit": "Domain Control Validated",
"city": null,
"state": null,
"country": null,
"sanCount": 2,
"publicKeyAlgo": "RSA",
"san": "*.aparat.com,aparat.com",
"certRating": "Secure",
"tags": null,
"certStatusError": null,
"certIssues": "512"
}
}
名前 | 申請/オプション | 種別 | 説明 |
---|---|---|---|
accountId | 必須 | string | アカウント ID |
divisionIds | 任意 | array | 管理グループ ID |
certificateId | 必須 | string | エンドポイントで確認された証明書用の一意 DigiCert 生成 ID証明書チェーン ID を 「証明書を一覧表示する」 申請から取得します。 |
名前 | 種別 | 説明 |
---|---|---|
data | object | コンテナ |
.. certId | string | エンドポイントで確認された証明書用の一意 DigiCert 生成 ID |
.. serialNum | string | 発行時に証明書に割り当てられたシリアル番号 |
.. validFrom | string | 有効期間開始日 |
.. expiryDate | string | 有効期間終了日: |
.. subject | string | フル証明書識別名 |
.. issuedBy | string | 証明書の発行元のルート証明書 |
.. cn | string | 証明書のコモンネーム |
.. ca | string | 証明書を発行した認証局 |
.. firstDiscoveredDate | string | 日付証明書は CertCentral Discovery スキャンではじめて確認されました |
.. keyLength | string | 証明書用の暗号キーサイズ |
.. algoType | string | 証明書が使用する暗号アルゴリズム |
.. accountId | string | アカウント ID |
.. certStatusString | string |
ステータス 証明書の
|
.. owner | string | CertCentral Discovery で定義のオーナー |
.. org | string | 証明書上の組織名 |
.. orgunit | string | 証明書上の組織部門 |
.. city | string | 証明書に記載の市町村 |
.. state | string | 証明書に記載の都道府県 |
.. country | string | 証明書に記載の国 |
.. sanCount | string | 証明書上のサブジェクトの別名の数 |
.. publicKeyAlgo | string | 証明書の公開鍵用の暗号アルゴリズム |
.. san | string | 証明書上のサブジェクトの別名 |
.. certRating | string |
証明書セキュリティ評価 ,業界基準と証明書の設定がベース
|
.. tags | string | 証明書オーナ-、加入者または他の管理者別に追加されたカスタムタグ |
.. certStatusError | string | 証明書ステータスの取り込み時エラー |
.. certIssues | string | 証明書発行向けのチャートデータ |