Queries the certificate information about a specified accelerated domain name.

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 parameter

Parameter Type Required Example Description
Action String No DescribeDcdnDomainCertificateInfo

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

DomainName String Yes test.com

The accelerated domain name. You can specify only one domain name in each call.

Response parameters

Parameter Type Example Description
CertInfos Array of CertInfo

The certificate information about the domain name.

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.

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

The accelerated domain name.

SSLProtocol String on

The status of HTTPS. Valid values:

  • on: enabled
  • off: disabled
SSLPub String xxxx

The public key of the certificate.

Status String success

The status of the certificate. Valid values:

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

The ID of the request.

Examples

Sample requests

http(s)://dcdn.aliyuncs.com/?Action=DescribeDcdnDomainCertificateInfo
&DomainName=test.com
&<Common request parameters>

Successful response examples

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.