Azure Trusted Signing SignTool Error: Multiple certificates were found that meet all the given criteria. Use the /a option to allow SignTool to choose the best certificate automatically or use the /sha1 option with the hash of the

Jacob Amaral 0 Reputation points
2025-05-28T13:52:30.9166667+00:00

I am trying to locally sign an exe my command in Powershell is :

.\signtool.exe sign /v /debug /fd SHA256 /tr "http://timestamp.acs.microsoft.com" /td SHA256 /dlib "C:\Users\Jacob\Desktop\microsoft.trusted.signing.client.1.0.86\bin\x64\Azure.CodeSigning.dll" /dmdf "C:\Users\Jacob\Desktop\metadata.json" "C:\Users\Jacob\Desktop\MyApp.exe"

but I get the error when running the command : SignTool Error: Multiple certificates were found that meet all the given criteria. Use the /a option to allow SignTool to choose the best certificate automatically or use the /sha1 option with the hash of the

I am logged in with azure cli, if I call

az account show

my data pops up proving I am logged in before running the signtool : {

"environmentName": "AzureCloud",

"homeTenantId": "e8...",

"id": "179...",

"isDefault": true,

"managedByTenants": [],

"name": "Azure subscription 1",

"state": "Enabled",

"tenantDefaultDomain": "j...hotmail.onmicrosoft.com",

"tenantDisplayName": "Default Directory",

"tenantId": "e8...",

"user": {

"name": "******@hotmail.com",

"type": "user"
```  }

}

What am I doing wrong? 

Azure Trusted Signing
Azure Trusted Signing
Trusted Signing is a Microsoft fully managed, end-to-end signing solution that simplifies the certificate signing process and helps partner developers more easily build and distribute applications.
233 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Meha-MSFT 990 Reputation points Microsoft Employee Moderator
    2025-05-28T18:31:31.8733333+00:00

  2. Jacob Amaral 0 Reputation points
    2025-05-29T12:32:19.1933333+00:00

    Figured it out, had to run Powershell as Admin and the major issue in my command :

    I was using this which is wrong :

    Azure.CodeSigning.dll

    I need to use Azure.CodeSigning.Dlib.dll

    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.