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.
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}}'
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)
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))
}
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);
});
{
"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
}
URL query strings are appended to the endpoint URL using a ?.
For example:
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. |
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:
|