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
Test
RAM authorization
|
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 |
| 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:
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:
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.