시작하기 전에 Secure Site Pro 인증서가 발급되어 활성인지 확인하십시오. Secure Site Pro 인증서 주문이 발급 보류 중이거나 만료되었거나 해지되었으면 CT 로그 모니터링 서비스가 비활성화되어 있습니다.
이 엔드포인트를 사용하여 Secure Site Pro 인증서 주문에 대해 CT 로그 모니터링 서비스를 사용으로 설정합니다.
curl -X PUT \
'https://www.digicert.com/services/v2/ctmonitor/{{order_id }}/enable' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/ctmonitor/{{order_id }}/enable"
payload = ""
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"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/ctmonitor/{{order_id }}/enable"
req, _ := http.NewRequest("PUT", 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: 'PUT',
url: 'https://www.digicert.com/services/v2/ctmonitor/{{order_id }}/enable',
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);
});
// empty