API 센터
Introduction
API-Key Authentication
AK/SK Authentication
APM
Edge Application
CDN Pro
Edge Computing Hosting
IAM
Media Acceleration Live Broadcast
Media Acceleration-Live
Media Acceleration
Cloud Live
Low Latency Streaming
Cloud VoD
API Shield
Application Shield
Web Application Firewall
Flood Shield
Cloud Security 2.0
Bot Shield
Flood Shield 2.0
Dynamic Web Acceleration
Content Acceleration
CloudDNS
Object Storage
Local Storage
Certificate MGMT
Certification Manage
QueryCertificate
QueryCertificateList
AddCertificateServiceV2
QueryCertificateInfo
DeleteCertificate
QueryCertificateRelatedDomains
QueryCertificateContent
EditCertificateV2
GetCertificateContent
QueryDomainMultiCertConfig
ReissueCertificateForWplus
CACertificateManagement
CertificateApplication
Content MGMT
IP Check
Cloud Monitor
Log Download
Others

QueryCertificate

갱신 시간: 2024-05-23 13:50:26

Check the details of SSL certificate, including certificate name, whether it shares or uses the current domain name information, etc.

  • 단일 사용자 통화 빈도: 1/5min
  • 해당 상품(제품): Certificate MGMT

요청 파라미터

Body 파라미터

XML
파라미터 이름설명
certificate-idint
Certificate ID Note: 1. Refer to the url in the request example, 100166 for certificate-id 2.After the new certificate is successfully submitted, the certificate-id corresponding to the certificate can be queried in the location access url in the return parameter. You can also query certificate-id through the View certificate List interface

응답 파라미터

Body 파라미터

XML
파라미터 이름설명
http status codeint
httpstatus=202; Indicates that the new domain API was successfully invoked.
related-domainscomplex
List of domain names using the current certificate
certificate-update-timeString
The time of the latest update certificate (CST time zone), for example: 2018-08-01 19:00:01
domain-idint
Accelerated domain name ID
domain-nameString
Name of accelerated domain name
x-cnc-request-idString
Uniquely identified id for querying tasks per request (for all API)
share-sslString
Shared, true means shared certificate, false means non-shared certificate
ca-md5String
Certificate ca file content md5
crt-md5String
Certificate crt file content md5
key-md5String
Certificate key file content md5
certificate-serialString
The CRT certificate serial number
certificate-issuerString
The CRT certificate issuer
nameString
Certificate name, unique to customer granularity
commentString
Remarks on certificate file
certificate-validity-toString
The expiration time of the certificate validity period (CST time zone), for example: 2018-08-01 19:00:00
certificate-validity-fromString
The start time of the certificate validity period (CST time zone), for example: 2016-08-01 07:00:00
dns-namesComplex
dns-names
dns-nameString
dns-name list, such as *.example.com test.example.com

에러 코드

에러 코드(code)설명(message)HTTP 상태 코드설명
NoSuchSslThe certificateId you provided is invalid. certificateId=$certificateId404The certificate Id you provided is invalid and the certificate id should be **
DecryptFailErrorDecryption failed. Please check that your SSL certificate is vaild.400Decoding fails, please check if you certificate is invalid
PARAM_INVALIDparam: {0} is null or invalid.400Parameter {} is null or invalid
WRONG_OPERATORWrong operator [$operator] for the customer.400Submission operator does not match the customer.

예제

XML
XML
요청 예제
복사
#!/bin/bash
username="example_username"
apiKey="example_apiKey"
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`
curl -i --url "https://api.cdnetworks.com/api/ssl/certificate/100166" \
-X "GET" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/xml"
응답 예제
복사
HTTP/1.1 202 OK
Date: Fri, 17 May 2017 06:33:26 GMT
Content-Type: application/xml;charset=utf-8
x-cnc-request-id:c54cbbb4-19fe-407a-930c-3988b62ed2fd
<?xml version="1.0" encoding="UTF-8"?>
<ssl-certificate>
  <name>testforsni</name>
  <comment>test for qbox </comment>
  <share-ssl>false</share-ssl>
  <certificate-issuer>CN = 16Root-CA, DC = wangsu, DC = com</certificate-issuer>
  <certificate-serial>23dw4asq2wr544fw24</certificate-serial>
  <related-domains>
    <related-domain>
      <domain-id>123344</domain-id>
      <domain-name>a1.example.com</domain-name>
    </related-domain>
    <related-domain>
      <domain-id>124466</domain-id>
      <domain-name>b1.example.com</domain-name>
    </related-domain>
  </related-domains>
</ssl-certificate>

디렉토리

  • 요청 파라미터
  • 응답 파라미터
  • 에러 코드
  • 예제
이 문서의 내용이 도움이 되었습니까?
아니오
정상적으로 제출되었습니다.피드백을 주셔서 감사합니다.앞으로도 개선을 위해 노력하겠습니다.