인증서 다운로드

GET
https://www.digicert.com/services/v2/certificate/{{certificate_id}}/download/platform

이 엔드포인트를 사용하여 certificate_id을(를) 사용하는 인증서를 다운로드합니다.

반환된 인증서 형식은 주문의 server_platform.id에 기초합니다. 다른 플랫폼에 대한 인증서를 다운로드하려면 이 엔드포인트에 /{{platform_id}}을 추가합니다. 유효한 platform_id 값은 용어집 — 서버 플랫폼을 참조하십시오.

cURL
curl -X GET \
  'https://www.digicert.com/services/v2/certificate/{{certificate_id}}/download/platform' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}'
Python
import requests

url = "https://www.digicert.com/services/v2/certificate/{{certificate_id}}/download/platform"

headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json"
    }

response = requests.request("GET", url, headers=headers)

print(response.text)
Go
package main

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

func main() {

	url := "https://www.digicert.com/services/v2/certificate/{{certificate_id}}/download/platform"

	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))

}
NodeJS
var request = require("request");

var options = { method: 'GET',
  url: 'https://www.digicert.com/services/v2/certificate/{{certificate_id}}/download/platform',
  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);
});
200 OK
// platform-specific certificate output