Répertorier les duplicatas

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

Appelez ce point de terminaison pour répertorier tous les duplicatas de certificat d’une commande.

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

Paramètres de réponse

Nom Type Description
certificates array Liste des certificats renvoyés par la demande
.. id int ID du certificat
.. thumbprint string Empreinte du certificat
.. serial_number string Numéro de série du certificat
.. common_name string Nom protégé par le certificat
.. dns_names array Liste des noms supplémentaires protégés par le certificat
.. status string Statut de la demande
Valeurs possibles : approved, issued, pending, rejected
.. date_created string Date de la demande de certificat
Format : Fuseau horaire UTC et date ISO 8601
.. valid_from string Date de début de validité du certificat
Format : yyyy-MM-dd
.. valid_till string Date d’expiration du certificat
Format : yyyy-MM-dd
.. days_remaining int Nombre de jours avant l’expiration du certificat
.. csr string Demande de signature de certificat
.. server_platform object Détails de la plate-forme serveur spécifie pour le certificat
.. signature_hash string Algorithme de signature utilisé par le certificat
.. key_size int Nombre de bits utilisés dans la clé
.. ca_cert_id string ID du certificat d’AC
.. sub_id Chaîne
.. public_id Chaîne
.. archived Chaîne
.. user_id int ID de l’utilisateur qui a envoyé la demande
.. firstname string Prénom de l’utilisateur qui a envoyé la demande
.. lastname string Nom de l’utilisateur qui a envoyé la demande