All Products
Search
Document Center

Certificate Management Service:Decrypt

Last Updated:Jun 25, 2024

Decrypts a certificate in a certificate repository.

Operation description

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:DecryptRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
CertIdentifierstringYes

The unique identifier of the certificate.

12345678-1234-1234-1234-12345678****
AlgorithmstringYes

The encryption algorithm. Valid values:

  • RSAES_OAEP_SHA_1
  • RSAES_OAEP_SHA_256
  • SM2PKE
RSAESOAEPSHA_1
CiphertextBlobstringYes

The data that you want to decrypt. The value is encoded in Base64.

ZOyIygCyaOW6Gj****MlNKiuyjfzw=
MessageTypestringNo

The value type of the Message parameter. Valid values:

  • RAW: The returned result is raw data encoded in UTF-8.
  • Base64: The returned result is Base64-encoded data. This is the default value.
Base64

Response parameters

ParameterTypeDescriptionExample
object

The object.

Plaintextstring

The data after decryption.

VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4
RequestIdstring

The ID of the request.

5979d897-d69f-4fc9-87dd-f3bb73c40b80
CertIdentifierstring

The unique identifier of the certificate.

12345678-1234-1234-1234-12345678****

Examples

Sample success responses

JSONformat

{
  "Plaintext": "VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4",
  "RequestId": "5979d897-d69f-4fc9-87dd-f3bb73c40b80",
  "CertIdentifier": "12345678-1234-1234-1234-12345678****"
}

Error codes

For a list of error codes, visit the Service error codes.