Use this endpoint to list all certificate duplicates for an order.
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);
});
{
"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"
}
]
}
Name | Type | Description |
---|---|---|
certificates | array | List of certificates returned by the request. |
.. id | int | Certificate ID. |
.. thumbprint | string | Thumbprint of the certificate. |
.. serial_number | string | Serial number of the certificate. |
.. common_name | string | Name secured by the certificate. |
.. dns_names | array | List of additional names secured by the certificate. |
.. status | string |
Status of the certificate. Possible values: approved , issued , pending , rejected
|
.. date_created | string |
Date the certificate was requested. Format: UTC timezone and ISO 8601 date |
.. valid_from | string |
Date when certificate validity starts. Format: yyyy-MM-dd
|
.. valid_till | string |
Expiration date of the certificate. Format: yyyy-MM-dd
|
.. days_remaining | int | Number of days until certificate expires. |
.. csr | string | Certificate signing request. |
.. server_platform | object | Details about the server platform specified for the certificate. |
.. signature_hash | string | Signing algorithm used by the certificate. |
.. key_size | int | Number of bits used in the key. |
.. ca_cert_id | string | ID of the CA certificate. |
.. sub_id | string | |
.. public_id | string | |
.. archived | string | |
.. user_id | int | ID of the user that submitted the request. |
.. firstname | string | First name of the user that submitted the request. |
.. lastname | string | Last name of the user that submitted the request. |