모든 철회 요청은 DigiCert에서 인증서를 철회하기 전에 관리자가 승인해야 합니다. 이 승인 단계는 필수이며 건너뛸 수 없습니다.
이 엔드포인트를 사용하여 주문의 한 개 인증서를 철회하는 요청을 제출합니다.
전체 주문을 철회하는 요청을 제출하려면 인증서 주문 철회 엔드포인트를 사용합니다.
대개 중 재발급 요청이 있는 인증서 철회할 수 없습니다. 보류 중 재발급으로 인증서를 해재하려면 재발급 요청을 취소하거나 재발급이 완료된 후에 인증서를 철회합니다.
한 개 인증서만 있는 주문의 인증서를 철회하면 다음과 같이 됩니다.
주문에 대한 인증서를 다시 발급하려고 계획하지 않으면 인증서 주문 철회 엔드포인트를 사용하여 주문을 철회하는 요청을 제출합니다.
curl -X PUT \
'https://www.digicert.com/services/v2/certificate/{{certificate_id}}/revoke' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}' \
-d '{
"comments": "I no longer need this cert."
}'
import requests
url = "https://www.digicert.com/services/v2/certificate/{{certificate_id}}/revoke"
payload = "{\n \"comments\": \"I no longer need this cert.\"\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/certificate/{{certificate_id}}/revoke"
payload := strings.NewReader("{\n \"comments\": \"I no longer need this cert.\"\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/certificate/{{certificate_id}}/revoke',
headers:
{ 'Content-Type': 'application/json',
'X-DC-DEVKEY': '{{api_key}}' },
body: { comments: 'I no longer need this cert.' },
json: true };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
{
"id": 1,
"date": "2016-02-10T17:06:15+00:00",
"type": "revoke",
"status": "pending",
"requester": {
"id": 14,
"first_name": "John",
"last_name": "Smith",
"email": "john.smith@digicert.com"
},
"comments": "I no longer need this cert."
}
이름 | 필수/옵션 | 유형 | 설명 |
---|---|---|---|
comments | 옵션 | string | 철회 요청에 대한 메시지입니다. |
이름 | 유형 | 설명 |
---|---|---|
id | int | 요청 ID입니다. |
date | string |
요청을 제출했을 때의 타임스탬프입니다. 형식: UTC 표준 시간대 ISO 8601 날짜 |
type | string |
요청 유형입니다. 가능한 값: revoke
|
status | string |
철회 요청의 상태입니다. 가능한 값: submitted , pending , approved , rejected
|
requester | object |
요청한 사용자에 대한 상세 정보입니다. 구조체 — 사용자 상세 정보 개체를 참조하십시오. |
comments | string | 철회 요청에 대한 메시지입니다. |