이 엔드포인트는 주문에 대한 활성 인증서만 반환합니다. 복제 인증서 또는 이전 재발급은 반환하지 않습니다. 특정 인증서를 다운로드하려면 인증서 받기(인증서 ID) 엔드포인트를 사용합니다.
이 엔드포인트를 사용하여 order_id
을(를) 사용하는 특정 형식의 인증서를 다운로드합니다. 유효한 format_type
값은 용어집 — 인증서 형식을 참조하십시오.
curl -X GET \
'https://www.digicert.com/services/v2/certificate/download/order/{{order_id}}/format/{{format_type}}' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/certificate/download/order/{{order_id}}/format/{{format_type}}"
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/certificate/download/order/{{order_id}}/format/{{format_type}}"
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/certificate/download/order/{{order_id}}/format/{{format_type}}',
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);
});
// format-specific certificate