You can call this operation to encrypt certificates in a certificate repository.
Operation description
The queries per second (QPS) limit for a single user is 10. If you exceed this limit, API calls are throttled, which may affect your business. To prevent this, call this operation at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cert:Encrypt |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Plaintext |
string |
Yes |
The data to encrypt.
The data can be plaintext or Base64-encoded plaintext. For more information, see the MessageType parameter.
If you use Base64 encoding, for example, if the hexadecimal content of the data to be encrypted is
|
1234*** |
| CertIdentifier |
string |
No |
The unique identifier of the certificate. To obtain this parameter, call the ListCert operation.
|
1ef1da5f-38ed-69b3-****-037781890265 |
| Algorithm |
string |
Yes |
The encryption algorithm. Valid values:
|
RSAESOAEPSHA_1 |
| MessageType |
string |
No |
The message type. Valid values:
Valid values:
|
RAW |
| CustomIdentifier |
string |
No |
The custom identifier, which serves as a unique key. |
****6bb538d538c70c01f81dg3**** |
| WarehouseId |
integer |
No |
The repository ID. Note
To obtain this ID, call the ListCertWarehouse operation. |
12 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Object |
||
| CertIdentifier |
string |
The unique identifier of the certificate. |
1ef1da5f-38ed-69b3-****-037781890265 |
| RequestId |
string |
The request ID. |
5979d897-d69f-4fc9-87dd-f3bb73c40b80 |
| CiphertextBlob |
string |
The encrypted data. The data is Base64-encoded. |
ZOyIygCyaOW6Gj****MlNKiuyjfzw= |
Examples
Success response
JSON format
{
"CertIdentifier": "1ef1da5f-38ed-69b3-****-037781890265",
"RequestId": "5979d897-d69f-4fc9-87dd-f3bb73c40b80",
"CiphertextBlob": "ZOyIygCyaOW6Gj****MlNKiuyjfzw="
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.