Describe the bug
When trying to sign anything on a Windows 2016 Server it simply hangs on Calling SignerSignEx3. It never completes.
Repro steps
Sign anything on a Windows Server 2016 installation:
.\sign.exe code trusted-signing -v Trace -tse https://eus.codesigning.azure.net -tsa A --trusted-signing-certificate-profile profile test.exe
Expected behavior
Actual behavior
trce: Sign.SignatureProviders.TrustedSigning.TrustedSigningService[0]
Fetching certificate from Trusted Signing certificate profile.
trce: Sign.SignatureProviders.TrustedSigning.TrustedSigningService[0]
Fetched certificate. [1024.1304 ms]
info: Sign.Core.ISigner[0]
Submitting test.exe for signing.
trce: Sign.Core.IDirectoryService[0]
Creating directory C:\Users\User\AppData\Local\Temp\2\zvo1xajv.ujg.
info: Sign.Core.ISigner[0]
SignAsync called for test.exe. Using C:\Users\User\AppData\Local\Temp\2\zvo1xajv.ujg\4upsrtht.exe locally.
info: Sign.Core.IDataFormatSigner[0]
Signing SignTool job with 1 files.
info: Sign.Core.IDataFormatSigner[0]
Signing C:\Users\User\AppData\Local\Temp\2\zvo1xajv.ujg\4upsrtht.exe.
trce: Sign.Core.IDataFormatSigner[0]
Getting SIP Data
trce: Sign.Core.IDataFormatSigner[0]
Calling SignerSignEx3
Hangs forever.
Tried to see with procmon if there are any clues, but nothing stands out.
As a solution, I installed the Windows 2016 SDK (10.0.17763.0) which contains wintrust.dll version 10.0.17763.132 and replaced the files included with the sign NuGet with those.
Describe the bug When trying to sign anything on a Windows 2016 Server it simply hangs on
Calling SignerSignEx3
. It never completes.Repro steps Sign anything on a Windows Server 2016 installation:
.\sign.exe code trusted-signing -v Trace -tse https://eus.codesigning.azure.net -tsa A --trusted-signing-certificate-profile profile test.exe
Expected behavior
Actual behavior
Hangs forever.
Tried to see with procmon if there are any clues, but nothing stands out.
Additional context
0.9.1-beta.24406.1+6584f5d081d8a06660d58d1a777b2352ff376a68