All Products
Search
Document Center

Certificate Management Service:CreateCertificateRequest

Last Updated:Feb 08, 2023

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 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 certificate resource plans of specified specifications, including the total number of purchased certificate resource plans of the specified specifications, the number of times that certificate applications have been submitted, and the number of times that certificates have been 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. For more information about how to call the operations related to certificate resource plans to apply for a certificate, see Call operations to apply for a certificate.

Authorization information

The following table is the authorization information corresponding to the API, which can be found in the RAM permission policy statement.Action Used in the element to grant the RAM user or RAM role permission to call this API. The specific instructions are as follows:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All resources is used in the Resource type column of the operation.
  • Condition keyword: refers to the condition keyword defined by the cloud product itself.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operateaccess levelResource typeconditional keywordAssociation operation
yundun-cert:CreateCertificateRequestWrite
  • SSLCertificatesService
    acs:yundun-cert:*:{#accountId}:*
    without
without

Request parameters

ParameterTypeRequiredDescriptionExample
ProductCodestringNo

The specifications of the certificate. Valid values:

  • symantec-free-1-free: DigiCert single-domain DV certificate in free trial. This is the default value.
  • symantec-dv-1-starter: DigiCert wildcard DV certificate.
  • geotrust-dv-1-starter: GeoTrust single-domain DV certificate.
  • geotrust-dv-w-starter: GeoTrust wildcard DV certificate.
  • globalsign-dv-1-personal: GlobalSign single-domain DV certificate.
  • globalsign-dv-w-advanced: GlobalSign wildcard DV certificate.
symantec-free-1-free
UsernamestringYes

The name of the applicant.

Tom
PhonestringYes

The phone number of the applicant.

1390000****
EmailstringYes

The email address of the applicant.

username@example.com
DomainstringYes

The domain name that you want to bind to the certificate. You can specify only one domain name.

NoteThe 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
ValidateTypestringYes

The method to verify the ownership of the domain name. Valid values:

  • DNS: DNS verification. If you use this method, you must add a TXT record to the DNS records of the domain name in the management platform of the domain name. You must have operation permissions on domain name resolution to verify the ownership of the domain name.
  • FILE: file verification. If you use this method, you must create a specified file on the DNS server. You must have administrative rights on the DNS server to verify the ownership of the domain name.

For more information about the verification methods, see Verify the ownership of a domain name.

DNS

All Alibaba Cloud API operations must include common request parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

ParameterTypeDescriptionExample
object

The object.

OrderIdlong

The ID of the certificate application order.

NoteYou can use the ID to query the status of the certificate application. For more information, see DescribeCertificateState.
98987582437920968
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D

Error codes

For a list of error codes, visit the API error center.