All Products
Search
Document Center

Certificate Management Service:DescribeCertificateState

Last Updated:Nov 02, 2026

Queries the status of a specified certificate application order.

Operation description

If you have not completed domain name ownership verification after submitting a certificate application, you can call this operation to obtain the information required to complete the verification. You can complete the domain name verification on the DNS management platform of the domain name (DNS verification) or the domain name server (file verification) based on the returned verification information.

The certificate application enters the review process of the certificate authority (CA) only after you complete the domain name verification. After the CA approves your certificate application, the certificate is issued. If the certificate is already issued, you can call this operation to obtain the issued certificate file and the private key content.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-cert:DescribeCertificateState

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

OrderId

integer

Yes

The ID of the certificate application order to query.

Note

You can obtain this ID by calling the ListUserCertificateOrder operation.

You must first purchase a certificate resource plan in the console, create a certificate application by using CreateCertificateForPackageRequest, and then use ListUserCertificateOrder (OrderType=CPACK or BUY) to obtain the OrderId. Make sure to distinguish between OrderId and CertificateId.

123451222

When you call this operation, you must include the common request parameters of Alibaba Cloud API in addition to the request parameters specific to this operation.

For the request format of calling the API, refer to the request example in the Examples section of this topic.

Response elements

Element

Type

Description

Example

object

The object.

Type

string

The status of the certificate application order. Valid values:

  • domain_verify: Pending verification. This value indicates that you have not completed domain name verification after submitting the certificate application.

    Note

    After you submit a certificate application, you must manually complete domain name ownership verification before the application can enter the review process. If you have not completed the domain name verification, you can refer to the response data of this operation to complete the verification.

  • process: Under review. This value indicates that the certificate application is under review by the CA.

  • verify_fail: Review failed. This value indicates that the certificate application failed the review.

    Note

    The review may fail because the certificate application information you submitted is incorrect. We recommend that you call the DeleteCertificateRequest operation to delete the order that failed the review (deleted orders do not consume the quota of the certificate resource plan) and resubmit the certificate application.

  • certificate: Issued. This value indicates that the certificate is issued.

  • payed: Pending application. This value indicates that the certificate is pending application.

  • unknow: Unknown status.

domain_verify

Domain

string

The domain name to be verified when file verification is used for domain name verification. You must connect to the server corresponding to the domain name and create a specified file (that is, Uri) on the server.

Note

This parameter is returned only when Type is set to domain_verify (which indicates the domain name verification stage) and ValidateType is set to FILE (which indicates file verification).

www.example.com

RecordType

string

The type of the DNS record that you must add when DNS verification is used for domain name verification. Valid values:

  • TXT: indicates a text record.

  • CNAME: indicates a canonical name (CNAME) record.

Note

This parameter is returned only when Type is set to domain_verify (which indicates the domain name verification stage) and ValidateType is set to DNS (which indicates DNS verification).

TXT

CertId

string

The ID of the certificate.

Note

This parameter is returned when the certificate is issued.

111111

RequestId

string

The ID of the request.

082FAB35-6AB9-4FD5-8750-D36673548E76

RecordDomain

string

The host record that you must configure when DNS verification is used for domain name verification.

Note

This parameter is returned only when Type is set to domain_verify (which indicates the domain name verification stage) and ValidateType is set to DNS (which indicates DNS verification).

_dnsauth

PrivateKey

string

The content of the certificate private key in PEM format. For more information about the PEM format and how to transform the certificate format (Convert the format of a certificate), refer to What are the formats of mainstream digital certificates?.

Note

This parameter is returned only when Type is set to certificate (which indicates that the certificate is issued).

-----BEGIN RSA PRIVATE KEY-----…… -----END RSA PRIVATE KEY-----

ValidateType

string

The domain name verification method selected when the certificate application is submitted. Valid values:

  • DNS: indicates DNS verification. This method verifies domain name ownership by adding a specified DNS record for the domain name on the DNS management platform of the domain name.

  • FILE: indicates file verification. This method verifies domain name ownership by creating a specified file on the domain name server.

Note

This parameter is returned only when Type is set to domain_verify (which indicates the domain name verification stage).

FILE

RecordValue

string

The value of the DNS record that you must add when DNS verification is used for domain name verification.

Note

This parameter is returned only when Type is set to domain_verify (which indicates the domain name verification stage) and ValidateType is set to DNS (which indicates DNS verification).

20200420000000223erigacv46uhaubchcm0o7spxi7i2isvjq59mlx9lucnkqcy

Content

string

The content that you must write to the newly created file when file verification is used for domain name verification.

Note

This parameter is returned only when Type is set to domain_verify (which indicates the domain name verification stage) and ValidateType is set to FILE (which indicates file verification).

http://example.com/.well-known/pki-validation/fileauth.txt

Uri

string

The file that you must create on the domain name server when file verification is used for domain name verification. Uri includes the file path and name.

Note

This parameter is returned only when Type is set to domain_verify (which indicates the domain name verification stage) and ValidateType is set to FILE (which indicates file verification).

/.well-known/pki-validation/fileauth.txt

Certificate

string

The content of the certificate in PEM format. For more information about the PEM format and how to transform the certificate format (Convert the format of a certificate), refer to What are the formats of mainstream digital certificates?.

Note

This parameter is returned only when Type is set to certificate (which indicates that the certificate is issued).

-----BEGIN CERTIFICATE----- …… -----END CERTIFICATE-----

Examples

Success response

JSON format

{
  "Type": "domain_verify",
  "Domain": "www.example.com",
  "RecordType": "TXT",
  "CertId": "111111",
  "RequestId": "082FAB35-6AB9-4FD5-8750-D36673548E76",
  "RecordDomain": "_dnsauth",
  "PrivateKey": "-----BEGIN RSA PRIVATE KEY-----…… -----END RSA PRIVATE KEY-----",
  "ValidateType": "FILE",
  "RecordValue": "20200420000000223erigacv46uhaubchcm0o7spxi7i2isvjq59mlx9lucnkqcy",
  "Content": "http://example.com/.well-known/pki-validation/fileauth.txt",
  "Uri": "/.well-known/pki-validation/fileauth.txt",
  "Certificate": "-----BEGIN CERTIFICATE----- …… -----END CERTIFICATE-----"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.