Uploading a Certificate
Function
This API is used to upload a certificate to SCM.
URI
Request
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| cert_name | Yes | String | Certificate name. The value is a string of 0 to 63 characters. |
| cert | Yes | String | Certificate chain content. |
| private_key | Yes | String | Private key of a certificate. |
Response
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| cert_id | Yes | String | Certificate ID. |
Example
The following describes how to upload a certificate named test.
- Example request
{ "cert_name":"test", "cert":"-----BEGIN CERTIFICATE----- *** -----END CERTIFICATE-----", "private_key": "-----BEGIN RSA PRIVATE KEY----- *** -----END RSA PRIVATEKEY-----" } - Example response
{ "cert_id": " scs1481110651012" }or
{ "error_code": "SCM.XXXX", "error_msg": "XXXX" }
Status Codes
For details about error code, see Error Code
Last Article: Downloading a Certificate
Next Article: Revoking a Certificate
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.