Method for signing hash.
If "API_KEY" variable is set in environment, API-Key
header shall be used in header
header 'API-Key: Strong_example'
The Service provider's application sends the following request using TLS for RSA keys:
POST /digest/sign
uzsing ECDSA key:
POST /digest/sign-ecc?SignatureMethod=P1364
Since with ECDSA ypu can create diferent signatures, DER and P1363 signatures are implemented and fo choose signatureMethot, a key SignatureMethod
with values DER
or P1363
are implemented.
Key | Type | Description |
---|---|---|
SignatureMethod |
string | Use DER or P1363 signing methods. if no key, DER is default. |
JSON
{
"hash": "string"
}
Description of properties
Property | Type | Description |
---|---|---|
hash |
string | hash to be signed in base64 format |
{
"hash": "27aAZIjttlrjGyLMlcMcQh+nsltyVNLpxdog="
}
JSON object:
{
"signatureMethod": "string",
"hash": "string",
"signatureValue": "string"
}
Description of properties
Property | Type | Description |
---|---|---|
signatureMethod |
string | Signature method used to sign |
hash |
string | hash requested to be signed in base64 format |
signatureValue |
string | Signature value in base64 format |
{
"signatureMethod": "P1363",
"hash": "27aAZIjttlrjGyLMlcMcQh+nsltyVNLpxdog=",
"signatureValue": "iyQGs/5hdq+....V/YsjOVA=="
}