Add a certificate.

You can call this operation to add a certificate.


Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateUserCertificate

The operation that you want to perform. Set this value to CreateUserCertificate.

Cert String Yes ---BEGIN CERTIFICATE----- MIIF...... -----END CERTIFICATE-----

The certificate content. This parameter must be in the Privacy Enhanced Mail (PEM) format.

Key String Yes ---BEGIN RSA PRIVATE KEY----- MII.... -----END RSA PRIVATE KEY-----

The private key of the certificate. This parameter must be in the PEM format.

Name String Yes auto-test-AXX

The name of the certificate, which is user-defined. The name of a certificate must be unique within a user account.

Lang String No ZH

The language type of the request and response.

SourceIp String No

The source IP address of the request.

Response parameters

Parameter Type Example Description
CertId Long 321

The ID of the certificate.

RequestId String BDXXX

The ID of the request.


Sample request

http(s)://[Endpoint]/? Action=CreateUserCertificate
&<Common request parameters>

Sample success response

XML format


JSON format


Error codes

The operation returns only common errors. For more information about errors common to all operations, see Error codes.