List duplicates

GET https://www.digicert.com/services/v2/order/certificate/{{order_id}}/duplicate
Use this endpoint to list all certificate duplicates for an order.

Example requests and responses

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

}
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"
    }
  ]
}

URL query parameters

NameReq/OptTypeDescription
show_archivedoptionalbooleanIf true, response includes archived certificates. If false (default), response omits archived certificates.

Response parameters

NameTypeDescription
certificatesarrayList of certificates returned by the request.
.. idintCertificate ID.
.. thumbprintstringThumbprint of the certificate.
.. serial_numberstringSerial number of the certificate.
.. common_namestringName secured by the certificate.
.. dns_namesarrayList of additional names secured by the certificate.
.. statusstringStatus of the certificate.
Possible values:approved, issued, pending, rejected
.. date_createdstringDate the certificate was requested.
Format: UTC timezone and ISO 8601 date
.. valid_fromstringDate when certificate validity starts.
Format:
yyyy-MM-dd
.. valid_tillstringExpiration date of the certificate.
Format:
yyyy-MM-dd
.. days_remainingintNumber of days until certificate expires.
.. csrstringCertificate signing request.
.. server_platformobjectDetails about the server platform specified for the certificate.
.. signature_hashstringSigning algorithm used by the certificate.
.. key_sizeintNumber of bits used in the key.
.. ca_cert_idstringID of the CA certificate.
.. sub_idstring
.. public_idstring
.. archivedstringIf 1, the certificate is archived. If 0, the certificate is not archivedr
.. user_idintID of the user that submitted the request.
.. firstnamestringFirst name of the user that submitted the request.
.. lastnamestringLast name of the user that submitted the request.