To sign data with Postman, select the following request.
PKIHub API / raw / partitions / {partid} / tokens / {tokenid} / keys / {keyid} / signatures / Sign DigestParams
Select the Params tab of the content pane to configure the following settings.
Type | Key | Value |
|---|---|---|
Path Variables | partId | Paste the Organization ID value obtained in Getting API credentials. |
Path Variables | tokenid | One of the token identifiers previously obtained in Getting a virtual token identifier with Postman. |
Path Variables | keyid | One of the key identifiers previously obtained in Getting a signing key identifier with Postman. |
Body
Select the Body tab of the content pane to configure the following parameters.
Parameter | Value |
|---|---|
hash | The hash value of the data to be signed. See Generating a data digest for how to generate these data. |
hahsType | The identifier of the algorithm used to hash the data. |
For example:
{ "hashType": "SHA256", "hash": "8sobtsfpB9Btr+Roflefznazfk6Tt2BQItpS5szCb9I="}Click Save to make the changes permanent
Result
Click Send to send the request. The Body tab of the results pane will display a response like the following.
{ "result": "a6hk7XF9nm1TtSB6gL6BY5siytcFjUM+6xU5wSfiFHsbyWUhenQxqUFvIlW02O0iOCyMLAICjWFeIksxUZkkVvlYz3TCV1THMoiBeVrQRpihMdjNw2DtKK2czdBWdjtftQGh1RmdYVs8eNTbGt6t1mcMEjPBw569ks6NlkC/aN2j3nK25NOlm6YFCZtfIasuyFuERb8JerEyx1nS7UE2RIVn3HnyIraiTjKZ5mRZXvNcwqT1ptZ4tTdfwjPMD8vylPWCCSxVvCy4US+fuJvkgmIjZ21u+DiQfSYGxcDXVIgPfRpiQ3b3GCPKuJC9JOy25R5ZPhCSgJOuz9gMa9k8oQ=="}