複製を一覧表示する

GET
https://www.digicert.com/services/v2/order/certificate/{{order_id}}/duplicate

このエンドポイントを使用して、オーダーについて、すべての証明書複製を一覧表示します。

cURL
curl -X GET \
  'https://www.digicert.com/services/v2/order/certificate/{{order_id}}/duplicate' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}'
Python
import requests

url = "https://www.digicert.com/services/v2/order/certificate/{{order_id}}/duplicate"

payload = ""
headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json"
    }

response = requests.request("GET", url, data=payload, headers=headers)

print(response.text)
Go
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://www.digicert.com/services/v2/order/certificate/{{order_id}}/duplicate"

	req, _ := http.NewRequest("GET", url, nil)

	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))

}
NodeJS
var request = require("request");

var options = { method: 'GET',
  url: 'https://www.digicert.com/services/v2/order/certificate/{{order_id}}/duplicate',
  headers: 
   { 'Content-Type': 'application/json',
     'X-DC-DEVKEY': '{{api_key}}' } };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
200 OK
{
  "certificates": [
    {
      "id": 12345,
      "thumbprint": "<thumbprint>",
      "serial_number": "<serial_number>",
      "common_name": "example.com",
      "dns_names": [
        "sub.example.com"
      ],
      "status": "approved",
      "date_created": "2016-03-25T21:01:40+00:00",
      "valid_from": "2016-03-23",
      "valid_till": "2019-03-28",
      "days_remaining": 111,
      "csr": "<csr>",
      "server_platform": {
        "id": 45,
        "name": "nginx",
        "install_url": "http://www.digicert.com/ssl-certificate-installation-nginx.htm",
        "csr_url": "http://www.digicert.com/csr-creation-nginx.htm"
      },
      "signature_hash": "sha256",
      "key_size": 2048,
      "ca_cert_id": "1005",
      "sub_id": "111",
      "public_id": "<public_id>",
      "archived": "0",
      "user_id": 2,
      "firstname": "Jan",
      "lastname": "Sport"
    },
    {
      "id": 23456,
      "common_name": "anewdomain.com",
      "dns_names": [
        "sub.anewdomain.com"
      ],
      "status": "rejected",
      "date_created": "2018-11-14T19:57:09+00:00",
      "csr": "<csr>", 
      "server_platform": {
        "id": 45,
        "name": "nginx",
        "install_url": "http://www.digicert.com/ssl-certificate-installation-nginx.htm",
        "csr_url": "http://www.digicert.com/csr-creation-nginx.htm"
      },
      "signature_hash": "sha256",
      "key_size": 2048,
      "ca_cert_id": "1005",
      "sub_id": "112",
      "public_id": "<public_id>",
      "archived": "0",
      "user_id": 5,
      "firstname": "John",
      "lastname": "Someone"
    },
    {
      "id": 34567,
      "common_name": "example.net",
      "dns_names": [
        "sub.example.net"
      ],
      "status": "pending",
      "date_created": "2018-11-15T22:41:43+00:00",
      "csr": "<csr>",
      "server_platform": {
        "id": 45,
        "name": "nginx",
        "install_url": "http://www.digicert.com/ssl-certificate-installation-nginx.htm",
        "csr_url": "http://www.digicert.com/csr-creation-nginx.htm"
      },
      "signature_hash": "sha256",
      "key_size": 2048,
      "ca_cert_id": "1005",
      "sub_id": "113",
      "public_id": "<public_id>",
      "archived": "0",
      "user_id": 12,
      "firstname": "Jill",
      "lastname": "Valentine"
    }
  ]
}

応答パラメータ

名前 種別 説明
certificates array 申請により返えされた証明書のリスト
.. id int 証明書 ID
.. thumbprint string 証明書のサムプリント
.. serial_number string 証明書のシリアル番号
.. common_name string 証明書が安全保護する名前
.. dns_names array 証明書が安全保護する追加名のリスト
.. status string 証明書のステータス
可能な値:approved,issued,pending,rejected
.. date_created string 証明書を申請した日付
形式:UTC タイムゾーンと ISO 8601 日付
.. valid_from string 証明書有効期間開始時の日付
形式:yyyy-MM-dd
.. valid_till string 証明書の有効期限日
形式:yyyy-MM-dd
.. days_remaining int 証明書の有効期限が切れるまでの日数。
.. csr string 証明書署名申請
.. server_platform object 証明書に指定したサーバープラットフォームについての詳細
.. signature_hash string 証明書が使用する署名アルゴリズム
.. key_size int キーに使用するビット数
.. ca_cert_id string CA 証明書の ID
.. sub_id 文字列
.. public_id 文字列
.. archived 文字列
.. user_id int 申請を提出したユーザーの ID
.. firstname string 申請を提出したユーザーの名
.. lastname string 申請を提出したユーザーの姓