All Products
Search
Document Center

DescribeDcdnDomainCertificateInfo

Last Updated: Mar 01, 2019

Description

You can call this operation to obtain details about a DCDN domain certificate.

Request parameters

Name Type Required Description
Action String Yes The operation that you want to perform. Set the value to DescribeDcdnDomainCertificateInfo.
DomainName String Yes The DCDN domain name.

Response parameters

Name Type Description
CertInfos CertInfo[] The certificate information.

CertInfo

Name Type Description
DomainName String The name of the DCDN domain.
CertName String The name of the certificate.
CertDomainName String The domain name that matches the certificate.
CertExpireTime String The time at which the certificate expires.
CertLife String The validity period of the certificate. Unit: months or years.
CertType String The type of the certificate. The type can be free, cas, or upload.
  • free: a free certificate.
  • cas: a certificate purchased from Alibaba Cloud SSL Certificates Service.
  • upload: a certificate that is uploaded locally.
    SSLProtocol String The status of the HTTPS protocol. The status can be on or off.
    • on: The HTTPS protocol is enabled.
    • off: The HTTPS protocol is disabled.
    Status String The status of the certificate. The status can be success, checking, cname_error, domain_invalid, unsupport_wildcard, applying, fget_token_timeout, check_token_timeout, get_cert_timeout, or failed.
    • success: The certificate has taken effect.
    • checking: Checking whether the domain name has been accelerated using Alibaba Cloud 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: Wildcard domain names are not supported.
    • applying: The certificate is in the application process.
    • get_token_timeout: The certificate application has timed out.
    • check_token_timeout: The token verification has timed out.
    • get_cert_timeout: The request for obtaining the certificate has timed out.
    • failed: The certificate application has failed.
    SSLPub String The public key of the certificate.

    Examples

    Sample requests

    1. http://dcdn.aliyuncs.com?Action=DescribeDcdnDomainCertificateInfo&DomainName=test.com&<Public request parameters>

    Sample responses

    JSON format

    1. {
    2. "CertInfos": {
    3. "CertInfo": [
    4. {
    5. "Status": "success",
    6. "CertLife": "3 months",
    7. "SSLProtocol": "on",
    8. "CertType": "cas",
    9. "CertName": "cert-test.com",
    10. "CertDomainName": "test.com",
    11. "DomainName": "test.com",
    12. "CertOrg": "Let's Encrypt",
    13. "CertExpireTime": "2018-06-03T22:03:39Z"
    14. }
    15. ]
    16. },
    17. "RequestId": "5C1E43DC-9E51-4771-82C0-7D5ECEB547A1"
    18. }

    XML format

    1. <DescribeDcdnDomainCertificateInfoResponse>
    2. <CertInfos>
    3. <CertInfo>
    4. <Status>success</Status>
    5. <CertLife/>
    6. <SSLProtocol>on</SSLProtocol>
    7. <CertType>cas</CertType>
    8. <CertName>cert-test.com<CertName/>
    9. <CertDomainName>test.com<CertDomainName/>
    10. <DomainName>test.com</DomainName>
    11. <CertOrg>Let's Encrypt<CertOrg/>
    12. <CertExpireTime>2018-06-03T22:03:39Z<CertExpireTime/>
    13. </CertInfo>
    14. </CertInfos>
    15. <RequestId>5C1E43DC-9E51-4771-82C0-7D5ECEB547A1</RequestId>
    16. </DescribeDcdnDomainCertificateInfoResponse>

    Error codes

    Error code Error message HTTP status code Description
    InvalidDomain.NotFound The domain provided does not belong to you. 404 The error message returned when the domain name does not exist or does not belong to the current user.