Queries the certificate information about a specified accelerated domain.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeDcdnDomainCertificateInfo

The operation that you want to perform. Set the value to DescribeDcdnDomainCertificateInfo.

DomainName String Yes test.com

The name of the accelerated domain. You can specify only one domain name.

Response parameters

Parameter Type Example Description
CertInfos Array

The certificate information.

CertInfo
CertDomainName String test.com

The domain name that matches the certificate.

CertExpireTime String 2018-06-03T22:03:39Z

The time when the certificate expires.

CertLife String 3 months

The validity period of the certificate. Unit: month or year.

CertName String cert-test.com

The name of the certificate.

CertOrg String Let's Encrypt

The certificate authority (CA) that issued the certificate.

CertType String cas

The type of the certificate. Valid values:

  • free: a free certificate
  • cas: a certificate that is purchased from Alibaba Cloud SSL Certificates Service
  • upload: a user uploaded certificate
DomainName String test.com

The name of the accelerated domain.

SSLProtocol String on

The status of the HTTPS protocol. Valid values:

  • on: The HTTPS protocol is enabled.
  • off: The HTTPS protocol is disabled.
SSLPub String xxxx

The public key of the certificate.

Status String success

The status of the certificate.

  • success: The certificate is effective.
  • checking: The system is checking whether the domain is using the acceleration service of Alibaba Cloud Dynamic Route for CDN (DCDN).
  • cname_error: The domain is not using the acceleration service of Alibaba Cloud DCDN.
  • domain_invalid: The domain name contains invalid characters.
  • unsupport_wildcard: The wildcard domain name is not supported.
  • applying: The certificate is in the application progress.
  • fget_token_timeout: The request of applying for the certificate has timed out.
  • check_token_timeout: The verification has timed out.
  • get_cert_timeout: The request of obtaining the certificate has timed out.
  • failed: The request of applying for the certificate has failed.
RequestId String 5C1E43DC-9E51-4771-82C0-7D5ECEB547A1

The ID of the request.

Examples

Sample requests

http://www.example.com?Action=DescribeDcdnDomainCertificateInfo
&DomainName=test.com
&<Common request parameters>

Sample success responses

XML format

<DescribeDcdnDomainCertificateInfoResponse>
      <CertInfos>
            <CertInfo>
                  <Status>success</Status>
                  <CertLife>3 months</CertLife>
                  <SSLProtocol>on</SSLProtocol>
                  <CertType>cas</CertType>
                  <CertName>cert-test.com</CertName>
                  <CertDomainName>test.com</CertDomainName>
                  <DomainName>test.com</DomainName>
                  <CertOrg>Let's Encrypt</CertOrg>
                  <CertExpireTime>2018-06-03T22:03:39Z</CertExpireTime>
            </CertInfo>
      </CertInfos>
      <RequestId>5C1E43DC-9E51-4771-82C0-7D5ECEB547A1</RequestId>
</DescribeDcdnDomainCertificateInfoResponse>

JSON format

{
  "CertInfos": {
    "CertInfo": [
      {
        "Status": "success",
        "CertLife": "3 months",
        "SSLProtocol": "on",
        "CertType": "cas",
        "CertName": "cert-test.com",
        "CertDomainName": "test.com",
        "DomainName": "test.com",
        "CertOrg": "Let's Encrypt",
        "CertExpireTime": "2018-06-03T22:03:39Z"
      }
    ]
  },
  "RequestId": "5C1E43DC-9E51-4771-82C0-7D5ECEB547A1"
}

Error codes

For a list of error codes, visit the API Error Center.