Creates an intermediate certificate authority (CA) certificate.
Operation Description
You can call the CreateSubCACertificate operation to issue an intermediate CA certificate by using an existing root CA certificate. Intermediate CA certificates can be used to issue client certificates and server certificates.
Before you call this operation, make sure that you have created a root CA certificate by calling the CreateRootCACertificate operation.
Limits
You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- 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 Key: the condition key that is defined by the cloud service.
- 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.
Operation | Access level | Resource type | Condition key | Association operation |
---|---|---|---|---|
yundun-cert:CreateSubCACertificate | Write |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ParentIdentifier | string | Yes | The unique identifier of the root CA certificate. NoteYou can call the DescribeCACertificateList operation to query the unique identifiers of all CA certificates. | 1a83bcbb89e562885e40aa0108f5**** |
Organization | string | Yes | The name of the organization that is associated with the intermediate CA certificate. You can enter the name of your enterprise or company. The value can contain letters. | Alibaba Cloud Computing Co., Ltd. |
OrganizationUnit | string | Yes | The name of the department or branch in the organization. The value can contain letters. | Security |
CountryCode | string | Yes | The code of the country or region in which the organization is located. You can enter an alpha-2 or alpha-3 code. For example, you can use CN to indicate China and use US to indicate the United States. For more information about country codes, see the "Country codes" section of the Manage company profiles topic. | CN |
State | string | Yes | The name of the province, municipality, or autonomous region in which the organization is located. The value can contain letters. | Zhejiang |
Locality | string | Yes | The name of the city in which the organization is located. The value can contain letters. | Hangzhou |
CommonName | string | Yes | The common name or abbreviation of the organization. The value can contain letters. | Aliyun |
Algorithm | string | Yes | The type of the key algorithm of the intermediate CA. The key algorithm is in the
The encryption algorithm of an intermediate CA certificate must be consistent with the encryption algorithm of a root CA certificate. The length of the keys can be different. For example, if the key algorithm of the root CA certificate is RSA_2048, the key algorithm of the intermediate CA certificate must be RSA_1024, RSA_2048, or RSA_4096. NoteYou can call the DescribeCACertificate operation to query the key algorithm of a root CA certificate. | RSA_2048 |
Years | integer | Yes | The validity period of the intermediate CA certificate. Unit: years. We recommend that you set this parameter to 5 to 10. NoteThe validity period of the intermediate CA certificate cannot exceed the validity period of the root CA certificate. You can call the DescribeCACertificate operation to query the validity period of a root CA certificate. | 5 |
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
Examples
Sample success responses
JSON
format
{
"Identifier": "160ae6bb538d538c70c01f81dcf2****",
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74",
"Certificate": "-----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----",
"CertificateChain": "-----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n-----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
2023-03-23 | The input parameters of the API operation change.,The response structure of the API operation changes. | |||||||||
|