mtrojnar / osslsigncode

OpenSSL based Authenticode signing for PE/MSI/Java CAB files
Other
801 stars 131 forks source link

Osslsigncode 2.3 - Released Windows EXE won't run #155

Closed Thenakedgun closed 2 years ago

Thenakedgun commented 2 years ago

Problem:

osslsigncode_2.2_windows.zip works fine when extracted, however, the subsequent version osslsigncode-2.3_windows.zip does not produce output in Powershell or Command Prompt, nor can it execute any commands that I know to work with version 2.2

I also tried it on my Windows Build Server & ran into a very similar problem. 2.2 worked fine, but 2.3 wouldn't start citing missing DLLs; after providing them, it still failed to start.

System:

Windows 10 Home Windows Server 2016

Steps to Reproduce:

Windows 10 Home

Windows Server 2016

Guess:

I'm pretty sure that vcruntime140d.dll is actually a debug version of the DLL. Could it be that the Windows version for 2.3 might not have been built for release?

mzros commented 2 years ago

Version 2.3 is running fine on Windows 11 here.

But I still cannot get it running within my docker container 'mcr.microsoft.com/powershell:lts-nanoserver-ltsc2022' it always returns exit code -1073741515

mtrojnar commented 2 years ago

Can you please try using the CI build from https://github.com/mtrojnar/osslsigncode/actions/runs/2747573105#artifacts?

mtrojnar commented 2 years ago

I'm asking because I'd like to make sure this issue is fixed before the next release planned in a few days.

Thenakedgun commented 2 years ago

Looks good on my end. Running v2.4-dev in the Win10 Home command line, I get the output as expected, can check the version, etc. Tried signing my most recent MSI & it worked as expected & produced the same output file as v2.2. Repeated tests on Win Server 2016 as well & it worked there too.

Thanks a lot for that! This tool saved me from pulling all of my hair out after hours of failing to get signtool.exe to work with some file formats my company was pigeon-holed into using.

mtrojnar commented 2 years ago

@Thenakedgun Thank you for your feedback.

@mzros Does the latest build fix it for you?