Change CT status

PUT https://www.digicert.com/services/v2/order/certificate/{{order_id}}/ct-status
To use this endpoint, CT logging must be enabled for your account and the per certificate CT logging option must be activated. (See Allow users to keep certificates out of CT logs.)

Use this endpoint to change the CT logging status of an order.

Before you start using this endpoint to change the CT logging status for issued certificates, make sure you have a process in place to reissue these certificates immediately and automatically. Make sure the process mitigates confusion and can guarantee that a certificate’s CT logging status is in sync with latest version of the issued certificate. Note that once a certificate is in public CT logs, it doesn’t come out. You can reissue the certificate and keep the reissued version out of CT logs but the original or previously issued version of the certificate will remain there.

Example requests and responses

curl -X PUT \
  'https://www.digicert.com/services/v2/order/certificate/{{order_id}}/ct-status' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}' \
  -d '{
    "disable_ct": true
}'
import requests

url = "https://www.digicert.com/services/v2/order/certificate/{{order_id}}/ct-status"

payload = "{\n    \"disable_ct\": true\n}"
headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json"
    }

response = requests.request("PUT", url, data=payload, headers=headers)

print(response.text)
package main

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

func main() {

	url := "https://www.digicert.com/services/v2/order/certificate/{{order_id}}/ct-status"

	payload := strings.NewReader("{\n    \"disable_ct\": true\n}")

	req, _ := http.NewRequest("PUT", 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))

}
var request = require("request");

var options = { method: 'PUT',
  url: 'https://www.digicert.com/services/v2/order/certificate/{{order_id}}/ct-status',
  headers: 
   { 'Content-Type': 'application/json',
     'X-DC-DEVKEY': '{{api_key}}' },
  body: { disable_ct: true },
  json: true };

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

  console.log(body);
});

204 No Content

// empty

Request parameters

NameReq/OptTypeDescription
disable_ctrequiredboolSpecify if CT logging should be disabled.
  • false: CT logging is enabled (certificate is logged to public CT logs)
  • true: CT logging is disabled (certificate is not logged to public CT logs