Signs data by using the given SignDataDetails resource.

POST {{cryptoEndpoint}}/20180608/sign

Creates a digital signature for a message or message digest by using the private key of a public-private key pair, also known as an asymmetric key. To verify the generated signature, you can use the Verify operation. Or, if you want to validate the signature outside of the service, you can do so by using the public key of the same asymmetric key.

Request Body

{"message"=>"<string>", "keyId"=>"<string>", "signingAlgorithm"=>"SHA_384_RSA_PKCS_PSS", "keyVersionId"=>"<string>", "messageType"=>"RAW"}

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringUnique identifier for the request. If provided, the returned request ID
will include this value. Otherwise, a random request ID will be
generated by the service.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;keyId&quot;:&quot;\u003cstring\u003e&quot;,&quot;keyVersionId&quot;:&quot;\u003cstring\u003e&quot;,&quot;signature&quot;:&quot;\u003cstring\u003e&quot;,&quot;signingAlgorithm&quot;:&quot;SHA_256_RSA_PKCS1_V1_5&quot;}