Purchases, applies for, and issues a domain validated (DV) certificate by using extended certificate services.
Operation description
- You can call this operation to apply for only DV certificates. If you want to apply for an organization validated (OV) or extended validation (EV) certificate, we recommend that you call the CreateCertificateForPackageRequest operation. This operation allows you to apply for certificates of all specifications and specify the method to generate a certificate signing request (CSR) file.
- 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.
- After you call this operation to submit a certificate application, Certificate Management Service automatically creates a CSR file for your application and consumes the certificate quota in the certificate resource plans of the specified specifications that you purchased. After you call this operation, you also need to call the DescribeCertificateState operation to obtain the information that is required to complete domain name verification, and manually complete the verification. If you use the DNS verification method, you must complete the verification on the management platform of the domain name. If you use the file verification method, you must complete the verification on your DNS server. Then, the certificate authority (CA) will review your certificate application.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ProductCode | string | No | The specifications of the certificate. 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 | |
Domain | string | Yes | The domain name that you want to bind to the certificate. You can specify only one domain name. Note
The domain name must match the certificate specifications that you specify for the ProductCode parameter. If you apply for a single-domain certificate, you must specify a single domain name for this parameter. If you apply for a wildcard certificate, you must specify a wildcard domain name such as *.aliyundoc.com for this parameter.
| www.aliyundoc.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 |
Response parameters
Examples
Sample success responses
JSON
format
{
"OrderId": 98987582437920960,
"RequestId": "CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D"
}
Error codes
For a list of error codes, visit the Service error codes.