Descargar certificado

GET
https://daas.digicert.com/apicontroller/v1/certificate/download?certId={{CERTIFICATE_ID}}&accountId={{ACCOUNT_ID_LONG}}&divisionId={{DIVISION_ID}}

Obtener el certificado como un archivo .crt.

cURL
curl -X GET \
  'https://daas.digicert.com/apicontroller/v1/certificate/download?certId=fb92ee3a2fd0cb6549e58c252f8787f467bfbeff&accountId=126993&divisionId=69748' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}' \
  -d '{
    "accountId": "126993",
    "divisionIds": [],
    "certId": [
        "fb92ee3a2fd0cb6549e58c252f8787f467bfbeff"
    ]
}'
Python
import requests

url = "https://daas.digicert.com/apicontroller/v1/certificate/download"

querystring = {"certId":"fb92ee3a2fd0cb6549e58c252f8787f467bfbeff","accountId":"126993","divisionId":"69748"}

payload = "{\n    \"accountId\": \"126993\",\n    \"divisionIds\": [],\n    \"certId\": [\n        \"fb92ee3a2fd0cb6549e58c252f8787f467bfbeff\"\n    ],\n    \"tags\": \"AddTags\"\n}"
headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json",
    }

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

print(response.text)
Go
package main

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

func main() {

	url := "https://daas.digicert.com/apicontroller/v1/certificate/download?certId=fb92ee3a2fd0cb6549e58c252f8787f467bfbeff&accountId=126993&divisionId=69748"

	payload := strings.NewReader("{\n    \"accountId\": \"126993\",\n    \"divisionIds\": [],\n    \"certId\": [\n        \"fb92ee3a2fd0cb6549e58c252f8787f467bfbeff\"\n    ],\n    \"tags\": \"AddTags\"\n}")

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

	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://daas.digicert.com/apicontroller/v1/certificate/download',
  qs: 
   { certId: 'fb92ee3a2fd0cb6549e58c252f8787f467bfbeff',
     accountId: '126993',
     divisionId: '69748' },
  headers: 
   { 'Content-Type': 'application/json',
     'X-DC-DEVKEY': '{{api_key}}' },
  body: 
   { accountId: '126993',
     divisionIds: [],
     certId: [ 'fb92ee3a2fd0cb6549e58c252f8787f467bfbeff' ],
     tags: 'AddTags' },
  json: true };

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

  console.log(body);
});
200 OK
Certificate is delivered as a .crt file contained in a .zip file.

Parámetros de la solicitud

Nombre Solicitud/opción Tipo Descripción
accountId obligatorio string Id. de cuenta.
divisionIds opcional array Id. de división.
certId obligatorio string Id. generada por DigiCert única para el certificado encontrado en el terminal. Obtenga la Id. del certificado de la solicitud Lista de los certificados.