Why does signtool crash when using the Trusted Signing dlib?

John L 0 Reputation points
2024-10-16T02:30:02.6466667+00:00

I'm trying to sign an exe and when I run signtool with the command line below, it crashes with no output:

signtool.exe sign /v /debug /fd SHA256 /tr "http://timestamp.acs.microsoft.com" /td SHA256 /dlib "Microsoft.Trusted.Signing.Client\bin\x64\Azure.CodeSigning.Dlib.dll" /dmdf metadata.json c:\path\to\app.exe

Some relevant details:

  • arm64 version of Windows 11 via Parallels on a Mac
  • x64 version of signtool
  • x64 version of the Trusted Signing dlib
  • Latest VC++ Runtime Redistributables
  • .NET 8.0 Runtime
  • I've tried running this in the default command prompt, the VS2022 x64 command prompt, and the VS2022 x64_x86 command prompt

Since there was no output before the crash, I looked in the Event Viewer and saw the following:

Faulting application name: signtool.exe, version: 10.0.26100.1, time stamp: 0x1b4f2e48
Faulting module name: msvcrt.dll, version: 7.0.26100.1882, time stamp: 0x1b2506a2
Exception code: 0x40000015
Fault offset: 0x0000000000092884
Faulting process id: 0xB94
Faulting application start time: 0x1DB1F192AF21973
Faulting application path: c:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\signtool.exe
Faulting module path: C:\WINDOWS\System32\msvcrt.dll

I'm probably missing something painfully obvious, but any insight or suggestions would be super helpful. Thanks!

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.
105 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. John L 0 Reputation points
    2024-10-19T05:28:00.7233333+00:00

    It turned out that I did not have the .NET 8.0 Runtime installed even though Visual Studio said I did. Once I installed it, everything worked fine.

    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.