Resolve issues with code signing using AzureSignTool

RaghuveerBoinapalli-6584 0 Reputation points
2025-04-10T01:36:27.84+00:00

Hi,

I recently setup a code signing certificate in Azure Key Vault. I am using the HSM. I setup the roll based Access control for the key vault while creating it. Then, I created an application in my azure tenant and provided all the required access roles (Key Vault Crypto Officer, Key Vault Crypto Service Encryption User, Key Vault Crypto User) to my KeyVault . I can see all those roles assigned to my app when i check the KeyVault IAM. But when I use the azuresigntool, I am getting the following error :
Signing executable files...

trce: AzureSignTool.SignCommand[0]

  Retrieving current version of certificate GlobalSign-CodeSigningCert.
```fail: AzureSignTool.SignCommand[0]

```yaml
  Failed to retrieve certificate codecertificate from Azure Key Vault. Please verify the name of the certificate and the permissions to the certificate. Error message: Caller is not authorized to perform action on resource.

  If role assignments, deny assignments or role definitions were changed recently, please observe propagation time.

  Caller: appid=xxxx;iss=https://sts.windows.net/761a7c13-d3ba-42e1-93e9-f17c1f98d720/

  Action: 'Microsoft.KeyVault/vaults/certificates/read'

  Resource: '/subscriptions/xxxx/resourcegroups/buildsigning/providers/microsoft.keyvault/vaults/buildsigningcert/certificates/codesigningcert'

  Assignment: (not found)

  DenyAssignmentId: null

  DecisionReason: null

  Vault: BuildSigningCert;location=eastus

  Status: 403 (Forbidden)

  ErrorCode: Forbidden

  Content:

  {"error":{"code":"Forbidden","message":"Caller is not authorized to perform action on resource.\r\nIf role assignments, deny assignments or role definitions were changed recently, please observe propagation time.\r\nCaller: appid=xxxx;iss=https://sts.windows.net/761a7c13-d3ba-42e1-93e9-f17c1f98d720/\r\nAction: 'Microsoft.KeyVault/vaults/certificates/read'\r\nResource: '/subscriptions/xxxx/resourcegroups/buildsigning/providers/microsoft.keyvault/vaults/igningcert/certificates/signingcert'\r\nAssignment: (not found)\r\nDenyAssignmentId: null\r\nDecisionReason: null \r\nVault: BuildSigningCert;location=eastus\r\n","innererror":{"code":"ForbiddenByRbac"}}}  
```Appreciate any hlep on this. 
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,448 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Raja Pothuraju 23,465 Reputation points Microsoft External Staff Moderator
    2025-04-17T13:58:16.5933333+00:00

    Hello @RaghuveerBoinapalli-6584,

    Although you followed the steps outlined in the query correctly, you also had to experiment with different options in AzureSignTool before it finally worked. I've added this comment to the conversation as it may help other community members facing similar issues.

    0 comments No comments

Your answer

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