I keep getting - SignTool Error: An unexpected internal error has occurred. Error information: "Error: SignerSign() failed." (-2147024846/0x80070032)"

Sasanka Nugawela 0 Reputation points
2025-04-29T09:41:22.0766667+00:00

I am on Windows 11, and I have set everything up on Azure for Trusted app signing. I tried to sign the application using:

"C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\signtool.exe" sign /v /debug /fd SHA256 /tr "http://timestamp.acs.microsoft.com" /td SHA256 /dlib "C:\Users<Username>\AppData\Local\Microsoft\MicrosoftTrustedSigningClientTools\Azure.CodeSigning.Dlib.Core.dll" /dmdf "signing_metadata\metadata.json" C:\Workspace<binary>.exe

I keep getting the aforementioned error:

SignTool Error: An unexpected internal error has occurred.

Error information: "Error: SignerSign() failed." (-2147024846/0x80070032)

I have done the setup according to the guide found at: https://learn.microsoft.com/en-us/azure/trusted-signing/how-to-signing-integrations and also added the AZURE_CLIENT_ID, AZURE_CLIENT_SECRET and AZURE_TENANT_ID for logging into Azure, which was not included in the guide. Could someone please help me to sort this out?

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
878 questions
0 comments No comments
{count} votes

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.