Download certificate (serial number)
less than a minute
GET
Use this endpoint to download a certificate found in the CT logs using the certificate’s serial number.https://www.digicert.com/services/v2/ctmonitor/{{order_id
Note
This is the serial number assigned to the certificate on issuance.Example requests and response
curl -X GET \
'https://www.digicert.com/services/v2/ctmonitor/{{order_id }}/ct-cert/{{serial_id}}/?issuer={{issuer}}' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'import requests
url = "https://www.digicert.com/services/v2/ctmonitor/{{order_id}}/ct-cert/{{serial_id}}/?issuer={{issuer}}"
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}}/ct-cert/{{serial_id}}/?issuer={{issuer}}"
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}}/ct-cert/{{serial_id}}/?issuer={{issuer}}',
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
{
"pem": "<certificate in pem format>"
}
Request URL query strings
URL query strings are appended to the endpoint URL using a ?.
For example:
https://www.digicert.com/services/v2/ctmonitor/{{order_id }}/ct-cert/{{serial_id}}/?issuer={{issuer}}
| Name | Req/Opt | Type | Description |
|---|---|---|---|
| issuer | required | string | Name of certificate authority that issued the certificate. |
Response parameters
| Name | Type | Description |
|---|---|---|
| pem | string | TLS/SSL certificate in PEM format. |
Was this page helpful?
Provide feedback