Purchases, applies for, and issues a domain validated (DV) certificate by using a custom certificate signing request (CSR) file.
Operation description
-
You can use this operation to apply for only a domain validated (DV) certificate. You cannot use this operation to apply for an organization validated (OV) certificate. We recommend that you use the CreateCertificateForPackageRequest operation to apply for a certificate. You can use the CreateCertificateForPackageRequest operation to apply for certificates of all types and specify the CSR generation method.
-
Before you call this operation, make sure that you have purchased a certificate resource plan of the required specifications. For more information about how to purchase a certificate resource plan, see Purchase a certificate resource plan. You can call the DescribePackageState operation to query the usage of a certificate resource plan of specified specifications, including the total number of certificate resource plans that you purchase, the number of certificate applications that you submit, and the number of certificates that are issued.
-
When you call this operation, you can use the ProductCode parameter to specify the specifications of the certificate that you want to apply for.
-
After you call this operation to submit a certificate application, the certificate quota of the required specifications that you purchased is consumed. After you call this operation, you must call the DescribeCertificateState operation to obtain the information that is required for domain name ownership verification and manually complete the verification. Then, your certificate application is reviewed by the certificate authority (CA). If you use the Domain Name System (DNS) verification method, you must complete the verification on your DNS service provider system. If you use the file verification method, you must complete the verification on the DNS server.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cert:CreateCertificateWithCsrRequest |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Csr |
string |
Yes |
The content of the CSR file. Note
The CN field in the CSR file specifies the domain name that is bound to the certificate. |
-----BEGIN CERTIFICATE REQUEST----- ...... -----END CERTIFICATE REQUEST----- |
| ProductCode |
string |
No |
The specifications of the certificate that you want to apply for. Valid values:
|
symantec-free-1-free |
| Username |
string |
Yes |
The name of the applicant. |
Tom |
| Phone |
string |
Yes |
The phone number of the applicant. |
1390000**** |
|
string |
Yes |
The contact email address of the applicant. |
username@example.com |
|
| ValidateType |
string |
Yes |
The method to verify the ownership of a domain name. Valid values:
For more information about the verification methods, see Verify the ownership of a domain name. |
DNS |
| Tags |
array<object> |
No |
A list of tags. |
|
|
object |
No |
The tags. |
||
| Key |
string |
No |
The tag key. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot start with |
database |
| Value |
string |
No |
The value of the tag. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| OrderId |
integer |
The ID of the certificate application order. Note
You can use the ID to query the status of the certificate application. For more information, see DescribeCertificateState. |
98987582437920968 |
| RequestId |
string |
The ID of the request, which is used to locate and troubleshoot issues. |
CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D |
Examples
Success response
JSON format
{
"OrderId": 98987582437920960,
"RequestId": "CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.