All Products
Search
Document Center

Certificate Management Service:CreateRootCACertificate

Last Updated:Feb 02, 2024

Creates a root certificate authority (CA) certificate.

Operation description

You can call the CreateRootCACertificate operation to create a self-signed root CA certificate. A root CA certificate is the trust anchor in a chain of trust for private certificates that are used within an enterprise. You must create a root CA certificate before you can use the root CA certificate to issue intermediate CA certificates. Then, you can use the intermediate CA certificates to issue client certificates and server certificates.

Before you call this operation, make sure that you have purchased a private root CA instance by using the Certificate Management Service console. For more information, see Create a private CA.

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.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-cert:CreateRootCACertificateWrite
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
CommonNamestringYes

The common name or abbreviation of the organization. The value can contain letters.

Alibaba
OrganizationUnitstringYes

The name of the department or branch in the organization. The value can contain letters.

Security
OrganizationstringYes

The name of the organization that is associated with the root CA certificate. You can enter the name of your enterprise or company. The value can contain letters.

Alibaba
LocalitystringYes

The name of the city in which the organization is located. The value can contain letters.

Hangzhou
StatestringYes

The name of the province, municipality, or autonomous region in which the organization is located. The value can contain letters.

Zhejiang
CountryCodestringNo

The code of the country or region in which the organization is located. You can enter an alpha-2 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
AlgorithmstringYes

The key algorithm of the root CA certificate. The key algorithm is in the <Encryption algorithm>_<Key length> format. Valid values:

  • RSA_1024: The signature algorithm is Sha256WithRSA.
  • RSA_2048: The signature algorithm is Sha256WithRSA.
  • RSA_4096: The signature algorithm is Sha256WithRSA.
  • ECC_256: The signature algorithm is Sha256WithECDSA.
  • ECC_384: The signature algorithm is Sha256WithECDSA.
  • ECC_512: The signature algorithm is Sha256WithECDSA.
  • SM2_256: The signature algorithm is SM3WithSM2.

The encryption algorithm of the root CA certificate must be consistent with the encryption algorithm of the private root CA instance that you purchase. For example, if the encryption algorithm of the private root CA instance that you purchase is RSA, the key algorithm of the root CA certificate must be RSA_1024, RSA_2048, or RSA_4096.

RSA_2048
YearsintegerYes

The validity period of the root CA certificate. Unit: years.

Note We recommend that you set this parameter to a value from 5 to 10.
10

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.

RequestIdstring

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

6D9B4C5F-7140-5B41-924C-329181DC00C1
Identifierstring

The unique identifier of the root CA certificate.

1a83bcbb89e562885e40aa0108f5****
Certificatestring

The root CA certificate in the PEM format.

-----BEGIN CERTIFICATE-----\n......\n-----END CERTIFICATE-----
CertificateChainstring

The certificate chain of the root CA certificate.

-----BEGIN CERTIFICATE-----\n......\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\n......\n-----END CERTIFICATE-----\n

Examples

Sample success responses

JSONformat

{
  "RequestId": "6D9B4C5F-7140-5B41-924C-329181DC00C1",
  "Identifier": "1a83bcbb89e562885e40aa0108f5****",
  "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 timeSummary of changesOperation
2023-03-23The response structure of the API has changedsee changesets
Change itemChange content
Output ParametersThe response structure of the API has changed.