Asymmetric key signature
The table below only lists the unique request parameters of this API and some common parameters. See common parameters for more information.
parameter | type | Is required | Example value | Description |
|---|---|---|---|---|
Action | String | yes | AsymmetricSign | The operation to perform, value: AsymmetricSign. |
Version | String | yes | 2021-02-18 | API version, value: 2021-02-18. |
KeyringName | String | No | keyring-test | Keyring name, length 2 to 31 characters. Valid characters: [a-zA-Z0-9-_] |
KeyName | String | No | key-test | Primary key name, length 2 - 31 characters. Valid characters: [a-zA-Z0-9-_] |
KeyID | String | No | 39a0e7c6-b7dd-4c83-b400-3449bb95403a | Primary key ID, select one: |
Message | String | Yes | MessageToBeSigned= | Signature message, Base64 encoded. |
MessageType | String | No | RAW | message type, values: |
Algorithm | String | yes | RSA_PSS_SHA_256 | Signature algorithms, choose one from the following: |
The table below lists only the return parameters unique to this interface. For more information, see return structure.
Parameter | Type | Example Value | Description |
|---|---|---|---|
KeyID | String | 39a0e7c6-b7dd-4c83-b400-3449bb95403a | Primary key unique identifier, in UUID format |
Signature | String | OuodVCE1zYpDFg1QvgOHtVQxkQWhfpE8i8NibiJ1pL8ILgAE+TogQZuIglAoo= | Data signature, Base64 encoded |
POST /?Action=AsymmetricSign&Version=2021-02-18&KeyringName=demo&KeyName=demo&MessageType=RAW&Algorithm=RSA_PSS_SHA_256 HTTP/1.1 Host: kms.cn-beijing.volcengineapi.com Content-Type: application/json; charset=UTF-8 X-Date: 20240708T150011Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20240708/cn-beijing/kms/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "Message": "MessageToBeSigned=" }
{ "ResponseMetadata": { "RequestId": "202407082300591051190940398C67B7", "Action": "AsymmetricSign", "Version": "2021-02-18", "Service": "kms", "Region": "cn-beijing" }, "Result": { "KeyID": "39a0e7c6-b7dd-4c83-b400-3449bb95403a", "Signature": "OuodVCE1zYpDFg1QvgOHtVQxkQWhfpE8i8NibiJ1pL8ILgAE+TogQZuIglAoo=" } }
The following table lists the error codes related to this interface and business logic. Refer to the Public Error Codes document for common error codes.
Status Code | Error Code | Description |
|---|---|---|
400 | MissingParameter | |
400 | InvalidParameter | |
400 | InvalidKeyStatus | |
400 | InvalidKeyUsage | |
403 | AccessDenied | |
403 | Reject.Throttling.CMK | |
403 | KeyMaterialExpire | |
404 | Not Found | |
500 | UndefinedError |