You can call this operation to query the certificate information for an 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
DomainName String Yes test.com

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

Action String No DescribeDcdnDomainCertificateInfo

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

Response parameters

Parameter Type Example Description
CertInfos Array

The certificate information for the specified domain returned.

CertInfo

The certificate information for the specified domain returned.

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: months or years.

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 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 name has been accelerated using Alibaba Cloud Dynamic Route for CDN (DCDN) service.
  • cname_error: The domain name is not accelerated using Alibaba Cloud DCDN service.
  • domain_invalid: The domain name contains invalid characters.
  • unsupport_wildcard: The wildcard domain name is not supported.
  • applying: The certificate is in the application process.
  • fget_token_timeout: The certificate application request has timed out.
  • check_token_timeout: The verification has timed out.
  • get_cert_timeout: The request to obtain the certificate has timed out.
  • ailed: The certificate application request 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

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

Error codes

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