列出重複

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 string
.. public_id string
.. archived string
.. user_id int 提交要求的使用者的 ID。
.. firstname string 提交要求的使用者的名字。
.. lastname string 提交要求的使用者的姓氏。