Queries the information about a specific certificate.

Note
  • The maximum number of times that each user can call this operation per second is 100.
  • If a certificate is associated with a domain name but not enabled, the result of this operation shows that the certificate does not exist.

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 DescribeCertificateInfoByID

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

CertId String Yes 1644xx

The ID of the SSL certificate. You can query only one certificate in each call.

Response parameters

Parameter Type Example Description
CertInfos Array of CertInfo

The information about the certificate.

CertInfo
CertExpireTime String 2098-02-08 08:02:07 +0000 UTC

The expiration time of the certificate.

CertId String 1644xx

The ID of the certificate.

CertName String example_cert

The name of the certificate.

CertType String cas

The type of the certificate.

  • free: a free certificate.
  • cas: a certificate purchased by using Certificate Management Service.
  • upload: a user-uploaded certificate.
CreateTime String 2015-12-21 08:02:07 +0000 UTC

The time when the certificate became effective.

DomainList String ["example.com"]

A list of domain names that use the certificate.

HttpsCrt String -----BEGIN CERTIFICATE-----\nxxx-----END CERTIFICATE-----\n

The content of the certificate.

RequestId String 5C1E43DC-9E51-4771-82C0-7D5ECEB547A1

The ID of the request.

Examples

Sample requests

http://cdn.aliyuncs.com?Action=DescribeCertificateInfoByID
&CertId=1644xx
&<Common request parameters>

Sample success responses

XML format

<DescribeCertificateInfoByIDResponse>
  <CertInfos>
        <CertInfo>
              <CertId>1644xx</CertId>
              <CertName>example_cert</CertName>
              <CreateTime>2015-12-21 08:02:07 +0000 UTC</CreateTime>
              <HttpsCrt>-----BEGIN CERTIFICATE-----
xxx-----END CERTIFICATE-----
</HttpsCrt>
              <CertType>cas</CertType>
              <CertExpireTime>2098-02-08 08:02:07 +0000 UTC</CertExpireTime>
              <DomainList>example.com</DomainList>
        </CertInfo>
  </CertInfos>
  <RequestId>5C1E43DC-9E51-4771-82C0-7D5ECEB547A1</RequestId>
</DescribeCertificateInfoByIDResponse>

JSON format

{
  "CertInfos": {
    "CertInfo": [{
        "CertId": "1644xx",
        "CertName": "example_cert",
        "CreateTime": "2015-12-21 08:02:07 +0000 UTC",
        "HttpsCrt": "-----BEGIN CERTIFICATE-----\nxxx-----END CERTIFICATE-----\n",
        "CertType": "cas",
        "CertExpireTime": "2098-02-08 08:02:07 +0000 UTC",
        "DomainList": ["example.com"]
      }]
  },
  "RequestId": "5C1E43DC-9E51-4771-82C0-7D5ECEB547A1"
}

Error codes

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