Get CT log details for a certificate

GET
https://www.digicert.com/services/v2/ctmonitor/{{order_id }}/cert-details/{{certificate_serial_number}}?issuer={{issuer_name}}

Use this endpoint to get the CT log details a certificate using the certificate's serial number.

This is the serial number assigned to the certificate on issuance.

Example requests and response

cURL
curl -X GET \
  'https://www.digicert.com/services/v2/ctmonitor/{{order_id /cert-details/{{certificate_serial_number}}?issuer={{issuer_name}}' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}'
Python
import requests

url = "https://www.digicert.com/services/v2/ctmonitor/{{order_id /cert-details/{{certificate_serial_number}}?issuer={{issuer_name}}"

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/ctmonitor/{{order_id /cert-details/{{certificate_serial_number}}?issuer={{issuer_name}}"

	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/ctmonitor/{{order_id /cert-details/{{certificate_serial_number}}?issuer={{issuer_name}}',
  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
{
    "serial": "5ac45b0849e252a7cd2d913613f0dce",
    "issuer": "RapidSSL RSA CA 2018",
    "not_after": "03 Jul 2020",
    "not_before": "04 Jul 2019",
    "pem": "<certificate in pem format>",
    "digicert_issued": true
}

Request URL query strings

URL query strings are appended to the endpoint URL using a ?.

For example:

markup
https://www.digicert.com/services/v2/ctmonitor/{{order_id /cert-details/{{certificate_serial_number}}?issuer={{issuer_name}}
Name Req/Opt Type Description
issuer required string Name of certificate authority that issued the certificate.

Response parameters

Name Type Description
serial string Serial number assigned to the certificate on issuance.
issuer string Name of certificate authority that issued the certificate.
not_after string Timestamp of when certificate validity ends
Format: UTC timezone and ISO 8601 date
not_before string Timestamp of when certificate validity starts
Format: UTC timezone and ISO 8601 date
pem string TLS/SSL certificate in PEM format.
digicert_issued bool If the certificate was issued by DigiCert.
Possible values:
  • true: issued by DigiCert
  • false: issued by another certificate authority