若要使用此端點,必須啟用用於您的帳戶的 CT 記錄,而且必須啟用依憑證 CT 記錄選項。(請參閱允許使用者將憑證保存在 CT 記錄外。)
使用此端點變更訂單的 CT 記錄狀態。
在您開始使用此端點變更用於發行的憑證的 CT 記錄狀態前,請確定您已有適當的程序以立刻並自動重新發行這些憑證。請確定程序可以減輕混淆,並且可以保證憑證的 CT 記錄狀態與最新版本的已發行憑證同步。請注意,憑證一在公用 CT 記錄中後,即不可移出來。您可以重新發行憑證,並將重新發行的版本保存在 CT 記錄外,但原始或之前發行版本的憑證將保留在該處。
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);
});
// empty
名稱 | 必填/選填 | 類型 | 說明 |
---|---|---|---|
disable_ct | 必填 | bool |
說明是否應停用 CT 記錄。
|