Lista de productos

GET
https://www.digicert.com/services/v2/product

Use este terminal para hacer una lista de todos los productos de su cuenta.

cURL
curl -X GET \
  https://www.digicert.com/services/v2/product \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}'
Python
import requests

url = "https://www.digicert.com/services/v2/product"

headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json"
    }

response = requests.request("GET", url, headers=headers)

print(response.text)
Go
package main

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

func main() {

	url := "https://www.digicert.com/services/v2/product"

	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/product',
  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
{
  "products": [
    {
      "group_name": "ssl_certificate",
      "name_id": "ssl_plus",
      "name": "Standard SSL",
      "type": "ssl_certificate",
      "allowed_container_ids": [
        11223,
        11224,
        11225
      ],
      "allowed_validity_years": [
        1,
        2
      ],
      "signature_hash_types": {
        "allowed_hash_types": [
          {
            "id": "sha256",
            "name": "SHA-256"
          },
          {
            "id": "sha384",
            "name": "SHA-384"
          },
          {
            "id": "sha512",
            "name": "SHA-512"
          }
        ],
        "default_hash_type_id": "sha256"
      },
      "csr_required": true
    },
    {
      "group_name": "ssl_certificate",
      "name_id": "ssl_multi_domain",
      "name": "Multi-Domain SSL",
      "type": "ssl_certificate",
      "allowed_container_ids": [
        11223,
        11224,
        11225
      ],
      "allowed_validity_years": [
        1,
        2
      ],
      "signature_hash_types": {
        "allowed_hash_types": [
          {
            "id": "sha256",
            "name": "SHA-256"
          },
          {
            "id": "sha384",
            "name": "SHA-384"
          },
          {
            "id": "sha512",
            "name": "SHA-512"
          }
        ],
        "default_hash_type_id": "sha256"
      },
      "csr_required": true
    },
    {
      "group_name": "ssl_certificate",
      "name_id": "ssl_wildcard",
      "name": "WildCard",
      "type": "ssl_certificate",
      "allowed_container_ids": [
        11223,
        11224,
        11225
      ],
      "allowed_validity_years": [
        1,
        2
      ],
      "signature_hash_types": {
        "allowed_hash_types": [
          {
            "id": "sha256",
            "name": "SHA-256"
          },
          {
            "id": "sha384",
            "name": "SHA-384"
          },
          {
            "id": "sha512",
            "name": "SHA-512"
          }
        ],
        "default_hash_type_id": "sha256"
      },
      "csr_required": true
    },
    {
      "group_name": "ssl_certificate",
      "name_id": "ssl_ev_plus",
      "name": "EV SSL",
      "type": "ssl_certificate",
      "allowed_container_ids": [
        11223,
        11224,
        11225
      ],
      "allowed_validity_years": [
        1,
        2
      ],
      "signature_hash_types": {
        "allowed_hash_types": [
          {
            "id": "sha256",
            "name": "SHA-256"
          },
          {
            "id": "sha384",
            "name": "SHA-384"
          },
          {
            "id": "sha512",
            "name": "SHA-512"
          }
        ],
        "default_hash_type_id": "sha256"
      },
      "csr_required": true
    },
    {
      "group_name": "ssl_certificate",
      "name_id": "ssl_ev_multi_domain",
      "name": "EV Multi-Domain",
      "type": "ssl_certificate",
      "allowed_container_ids": [
        11223,
        11224,
        11225
      ],
      "allowed_validity_years": [
        1,
        2
      ],
      "signature_hash_types": {
        "allowed_hash_types": [
          {
            "id": "sha256",
            "name": "SHA-256"
          },
          {
            "id": "sha384",
            "name": "SHA-384"
          },
          {
            "id": "sha512",
            "name": "SHA-512"
          }
        ],
        "default_hash_type_id": "sha256"
      },
      "csr_required": true
    },
    {
      "group_name": "client_certificate",
      "name_id": "client_digital_signature_plus",
      "name": "Digital Signature Plus",
      "type": "client_certificate",
      "allowed_container_ids": [
        11223,
        11224,
        11225
      ],
      "allowed_validity_years": [
        1,
        2,
        3
      ],
      "signature_hash_types": [],
      "csr_required": false
    },
    {
      "group_name": "client_certificate",
      "name_id": "client_premium",
      "name": "Premium",
      "type": "client_certificate",
      "allowed_container_ids": [
        11223,
        11224,
        11225
      ],
      "allowed_validity_years": [
        1,
        2,
        3
      ],
      "signature_hash_types": [],
      "csr_required": false
    },
    {
      "group_name": "code_signing_certificate",
      "name_id": "code_signing",
      "name": "Code Signing",
      "type": "code_signing_certificate",
      "allowed_container_ids": [
        11223,
        11224,
        11225
      ],
      "allowed_validity_years": [
        1,
        2,
        3
      ],
      "signature_hash_types": {
        "allowed_hash_types": [
          {
            "id": "sha256",
            "name": "SHA-256"
          },
          {
            "id": "sha1",
            "name": "SHA-1"
          }
        ],
        "default_hash_type_id": "sha256"
      },
      "csr_required": false
    },
    {
      "group_name": "code_signing_certificate",
      "name_id": "code_signing_ev",
      "name": "EV Code Signing",
      "type": "code_signing_certificate",
      "allowed_container_ids": [
        11223,
        11224,
        11225
      ],
      "allowed_validity_years": [
        1,
        2,
        3
      ],
      "signature_hash_types": {
        "allowed_hash_types": [
          {
            "id": "sha256",
            "name": "SHA-256"
          },
          {
            "id": "sha1",
            "name": "SHA-1"
          }
        ],
        "default_hash_type_id": "sha256"
      },
      "csr_required": false
    },
    {
      "group_name": "document_signing",
      "name_id": "document_signing_org_1",
      "name": "Document Signing - Organization (2000)",
      "type": "document_signing",
      "allowed_container_ids": [
        11223,
        11224,
        11225
      ],
      "allowed_validity_years": [
        1,
        2,
        3
      ],
      "signature_hash_types": {
        "allowed_hash_types": [
          {
            "id": "sha256",
            "name": "SHA-256"
          },
          {
            "id": "sha384",
            "name": "SHA-384"
          },
          {
            "id": "sha512",
            "name": "SHA-512"
          }
        ],
        "default_hash_type_id": "sha256"
      },
      "csr_required": false
    },
    {
      "group_name": "document_signing",
      "name_id": "document_signing_org_2",
      "name": "Document Signing - Organization (5000)",
      "type": "document_signing",
      "allowed_container_ids": [
        11223,
        11224,
        11225
      ],
      "allowed_validity_years": [
        1,
        2,
        3
      ],
      "signature_hash_types": {
        "allowed_hash_types": [
          {
            "id": "sha256",
            "name": "SHA-256"
          },
          {
            "id": "sha384",
            "name": "SHA-384"
          },
          {
            "id": "sha512",
            "name": "SHA-512"
          }
        ],
        "default_hash_type_id": "sha256"
      },
      "csr_required": false
    }
  ]
}

Parámetros de la respuesta

Nombre Tipo Descripción
products array Lista de todos los productos disponibles.
.. group_name string Agrupar en la lista a la que pertenece el producto.
Vea Glosario: identificadores de productos
.. name_id string Identificador del producto.
Vea Glosario: identificadores de productos
.. name string Mostrar nombre del producto.
.. type string Tipos de producto.
Vea Glosario: tipos de productos
.. allowed_container_ids array of ints Lista de contenedores que puede solicitar el producto especificado.
.. allowed_validity_years array of ints Lista de años de validez permitidos que se pueden solicitar para el producto.
.. signature_hash_types object Contenedor para información de cifrado de firma.
.. .. allowed_hash_types array Lista de tipos de cifrado permitidos para el producto.
.. .. .. id string Identificador del cifrado.
Vea Glosario: tipos de cifrado
.. .. .. name string Nombre de cifrado.
.. .. default_hash_type_id string Tipo de cifrado predeterminado usado para el producto.
.. allowed_ca_certs array Lista de certificados CA que pueden usarse para firmar un certificado SSL privado.
.. .. id string Id. de certificado CA.
.. .. name string Nombre de certificado CA.
.. csr_required bool Especifica si una CSR es obligatoria cuando se solicita el tipo de producto.