Issues a server-side certificate using a system-generated Certificate Signing Request (CSR).
Operation description
Before you call this operation, you must call CreateRootCACertificate to create a root certificate authority (CA) certificate and CreateSubCACertificate to create a subordinate CA certificate. Only a subordinate CA certificate can issue a server certificate.
QPS limits
The queries per second (QPS) limit for this operation is 10 calls per second for each user. If you exceed this limit, the system throttles your API calls, which can affect your business. Plan your calls accordingly.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cert:CreateServerCertificate |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Domain |
string |
No |
The additional domain names and IP addresses for the server certificate. This information lets you apply the certificate to multiple domain names and IP addresses. Separate multiple domain names or IP addresses with a comma (,). |
example.com |
| Organization |
string |
No |
The name of the organization. The default value is Alibaba Inc. |
阿里云 |
| OrganizationUnit |
string |
No |
The name of the department. The default value is Alibaba Cloud CDN. |
IT |
| Country |
string |
No |
The country code, such as CN or US. |
CN |
| CommonName |
string |
Yes |
The name of the certificate user. For a server authentication (ServerAuth) certificate, the user is the server. Enter the domain name or IP address that is bound to the server. |
www.example.com |
| State |
string |
No |
The province or state where the organization is located. Chinese and English characters are supported. The default value is the province or state of the organization that is associated with the subordinate CA certificate that issues this certificate. |
Zhejiang |
| Locality |
string |
No |
The city where the organization is located. Chinese and English characters are supported. The default value is the city of the organization that is associated with the subordinate CA certificate that issues this certificate. |
Hangzhou |
| Algorithm |
string |
Yes |
The key algorithm of the server certificate. The algorithm is in the
The encryption algorithm of the server certificate must be the same as the encryption algorithm of the subordinate CA certificate, but the key length can be different. For example, if the key algorithm of the subordinate CA certificate is RSA_2048, the key algorithm of the server certificate must be RSA_1024, RSA_2048, or RSA_4096. Note
Call DescribeCACertificate to query the key algorithm of the subordinate CA certificate. |
RSA_2048 |
| ParentIdentifier |
string |
Yes |
The unique identifier of the subordinate CA certificate that issues this certificate. Note
Call DescribeCACertificateList to query the unique identifier of the subordinate CA certificate. |
271ae6bb538d538c70c01f81dg3**** |
| Years |
integer |
No |
The validity period of the certificate, in years. |
1 |
| Months |
integer |
No |
The validity period of the certificate, in months. |
12 |
| Days |
integer |
No |
The validity period of the server certificate, in days. The Days, BeforeTime, and AfterTime parameters cannot all be empty. The BeforeTime and AfterTime parameters must be specified together or left empty together. The following rules describe how to set these parameters:
Note
|
365 |
| BeforeTime |
integer |
No |
The issuance time of the server certificate. This value is a UNIX timestamp in seconds. The default value is the time when you call this operation. Note
The BeforeTime and AfterTime parameters must be specified together or left empty together. |
1634283958 |
| AfterTime |
integer |
No |
The expiration time of the server certificate. This value is a UNIX timestamp in seconds. Note
The BeforeTime and AfterTime parameters must be specified together or left empty together. |
1665819958 |
| Immediately |
integer |
No |
Specifies whether to return the digital certificate immediately.
|
1 |
| EnableCrl |
integer |
No |
Specifies whether to include the Certificate Revocation List (CRL) address. 0: No 1: Yes |
1 |
| Tags |
array<object> |
No |
A list of tags. |
|
|
object |
No |
A list of tags. |
||
| Key |
string |
No |
The tag key. |
account |
| Value |
string |
No |
The tag value. |
test |
| ResourceGroupId |
string |
No |
The ID of the resource group. Call the ListResources operation to get this ID. |
test |
| CustomIdentifier |
string |
No |
A custom identifier. This key must be unique. |
****6bb538d538c70c01f81dg3**** |
When you call this operation, you must include the common request parameters in addition to the request parameters described in this topic.
For information about the request format, see the request example in the Examples section of this topic.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
CreateCertificateResponse |
||
| X509Certificate |
string |
The content of the server certificate. |
-----BEGIN CERTIFICATE-----\n......\n-----END CERTIFICATE----- |
| CertificateChain |
string |
The CA certificate chain. |
-----BEGIN CERTIFICATE-----\n......\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\n......\n-----END CERTIFICATE-----\n |
| Identifier |
string |
The unique identifier of the server certificate. |
160ae6bb538d538c70c01f81dcf2**** |
| SerialNumber |
string |
The serial number of the certificate. |
084bde9cd233f0ddae33adc438cfbbbd**** |
| RequestId |
string |
The ID of the request. This ID is a unique identifier generated by Alibaba Cloud. Use this ID to troubleshoot issues. |
15C66C7B-671A-4297-9187-2C4477247A74 |
Examples
Success response
JSON format
{
"X509Certificate": "-----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----",
"CertificateChain": "-----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n-----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n",
"Identifier": "160ae6bb538d538c70c01f81dcf2****",
"SerialNumber": "084bde9cd233f0ddae33adc438cfbbbd****",
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.