How to request Azure Key Vault to sign a JSON with a secret

Fabrício Fortaleza 130 Reputation points
2024-01-25T14:26:03.4133333+00:00

I would like to create a code where I request Azure Key Vault to sign a JSON containing data and return the hash of the signed data with the secret. I will send this hash to an external API, and the API will 'unsign' the hash with the public part of the secret (Note: my secret is actually a private key). The purpose of this code is to ensure that the entity sending data to the external API does not have access to the value of my private key (secret). If anyone can explain the step-by-step process of this functionality or provide documentation, I would be very grateful. The language I am using is PHP, but it can be an example in Python as well.

Azure Key Vault
Azure Key Vault

An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.


1 answer

Sort by: Oldest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.