Uploads a certificate, including a standard Chinese national cryptographic (China SM) certificate or a non-China SM certificate.
Operation description
The China SM certificate refers to a certificate that uses the ShangMi (SM) cryptographic algorithms. The China SM certificate includes an encryption certificate and a signing certificate. The China SM certificate is used in China to comply with the national cryptographic standards.
The China SM certificate refers to a certificate that uses the ShangMi (SM) cryptographic algorithms.
The China SM certificate includes an encryption certificate and a signing certificate.
The China SM certificate is used in China to comply with the national cryptographic standards.
The China SM certificate refers to a certificate that uses the ShangMi (SM) cryptographic algorithms.
The China SM certificate includes an encryption certificate and a signing certificate.
The throttling limit for this API is 100 queries per second (QPS) per user. If this limit is exceeded, API calls are throttled, which may affect your business. Call this API at a reasonable frequency.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cert:UploadUserCertificate |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The custom certificate name. Maximum length: 63 characters. All character types are supported, including letters, digits, and underscores. Note
Certificate names must be unique within the same user account. |
cert-1 |
| Cert |
string |
No |
The non-China SM certificate content in PEM format. |
-----BEGIN CERTIFICATE----- MIIF...... -----END CERTIFICATE----- |
| Key |
string |
No |
The private key content of the non-China SM certificate in PEM format. |
-----BEGIN CERTIFICATE----- MIICDzCCAbagAw**** -----END CERTIFICATE----- |
| EncryptCert |
string |
No |
The encryption certificate content of the China SM certificate in PEM format. This field is invalid when Cert and Key are not empty. |
-----BEGIN CERTIFICATE----- MIICDzCCA*** -----END CERTIFICATE----- |
| EncryptPrivateKey |
string |
No |
The private key content of the encryption certificate of the China SM certificate in PEM format. This field is invalid when Cert and Key are not empty. |
-----BEGIN EC PRIVATE KEY----- MHcCAQEEI**** -----END EC PRIVATE KEY----- |
| SignCert |
string |
No |
The signing certificate content of the China SM certificate in PEM format. This field is invalid when Cert and Key are not empty. |
-----BEGIN CERTIFICATE----- MIICDzCCAbagAw**** -----END CERTIFICATE----- |
| SignPrivateKey |
string |
No |
The private key content of the signing certificate of the China SM certificate in PEM format. This field is invalid when Cert and Key are not empty. |
-----BEGIN EC PRIVATE KEY----- MHcCAQEEILR**** -----END EC PRIVATE KEY----- |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-ae****vty |
| Tags |
array<object> |
No |
The list of tags. |
|
|
object |
No |
The tag object. |
||
| Key |
string |
No |
The tag key. |
testKey |
| Value |
string |
No |
The tag value. |
1 |
|
No |
The client token that is used to ensure the idempotence of the request. |
XXX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| CertId |
integer |
The certificate ID. |
12345 |
| RequestId |
string |
The request ID. |
BDB81BA2-E1F5-4D08-A2DD-4BE2BF44C90E |
| ResourceId |
string |
The instance ID of the certificate to operate on. |
cas-upload-xki1d0 |
Examples
Success response
JSON format
{
"CertId": 12345,
"RequestId": "BDB81BA2-E1F5-4D08-A2DD-4BE2BF44C90E",
"ResourceId": "cas-upload-xki1d0"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.