I keep getting - SignTool Error: An unexpected internal error has occurred. Error information: "Error: SignerSign() failed." (-2147024846/0x80070032)"
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?