Referring to the Azure keyvault Sign API at https://docs.microsoft.com/en-us/rest/api/keyvault/sign/sign. Its not clear if the "value" which is string (in request and response both), how the API expects the encoding for binary strings like digest and how the response has this 'value' encoded? Is this in base64? If so, Azure has any difference in base64? Any sample code showing this REST API request/response processing?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
For the Sign API, the value is a digest. This page tells that it needs to be base64url
encoded, and conforming to JOSE specifications. The actual value will vary according to the signing algorithm. Links to libraries and sample code in many programming languages can be found here.
标签:
azure-keyvault