Signing a data digest with curl

Send a request to the Raw Signature service to sign the $DIGEST_TBS hash using the key with the $KEY_ID identifier – for example:

$ curl -s -H "Authorization: $JWT" "$SIGNING_SERVICE_URL/raw/partitions/$PARTITION/tokens/$TOKEN/keys/$KEY_ID/signatures" -X POST -H "Content-type: application/json" -d '{"hashType": "'SHA256'", "hash": "'$DIGEST_TBS'"}'| jq .
{
"result": "aJEpAW1sR4Xu9CoFVNhYBEQcKqawonuL7MrOe6P5EmovO3YzLp1nSFmiSYgYPA/DmBAihTESm6StVKaTevAB58WhiQoj+Eh4gPbN0SFxJPYkNP8BzMorHREAacMLqHEMwcoJM9st7M..."
}