-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signing (signcode-tf) failed on Windows 7 when multiple hash algorithms are used #581
Comments
I am maintainer of signcode-tf so, it is right place to report bug. It seems, Windows 7 is not supported to sign — I will check it. Is there any valid reason to use outdated Windows version to sign? Maybe you can migrate to win 10 (or win 8)? (Just ask). |
Source code of this tool — https://github.com/develar/signcode |
@develar thanks for your quick response. Our build servers are currently using Windows 7, but I can look into upgrading them. Windows 7 extended support ends on January 14, 2020, so I'd expect a lot of corporate users to still run on Windows 7 for a while. Thanks for the link to the source code, I will take a look at it too. Please let me know your findings. |
Ok, I will fix it tomorrow, we support Windows server 2008 R2, so, Windows 7 SP1 should be also supported. |
@develar this particular issue occurs in Windows 7 when you try to use the /as option with Signtool.exe that lives under the windows-6 folder. In other words, when you are trying to sign using more than one algorithm, which is the default behavior. By the way, I think you can get away with just using the signtool.exe that you have on the windows 10 directory in all version of windows including windows 7. However, there's still another issue (see #584). |
Fix/resolution postponed — don't expect fix today. (as open source project, I can work only one hour morning :)) |
@develar I can work on it and send you a PR if you are fine with it. |
No, I don't believe that dual code sign is not possible on Windows 7. Solution should be found. Or win 7 rejected. |
@develar I understand. I read this from https://msdn.microsoft.com/en-us/library/windows/desktop/aa387764(v=vs.85).aspx:
I am going to give it a try and let you know. |
I tried the procedure above, using the files from C:\Program Files (x86)\Windows Kits\8.1\bin\x86, and it worked, for SHA256-only and also for dual signing SHA1/SHA256. @develar please check develar/signcode#3 for a fix. |
When I try to run
build -w
under Windows 7, the signcode-tf library fails as you can see below.Everything works well on Windows 10, which I know calls electron-builder\node_modules\signcode-tf\vendor\windows-10\signtool.exe instead of the signtool.exe under windows-6.
@develar, I know this is more a signcode-tf issue, but when I go to https://www.npmjs.com/package/signcode-tf, it points me to what I believe is the wrong (maybe before fork) source code (https://github.com/kevinsawicki/signcode), so I am a bit confused, again, maybe I'm doing something wrong.
electron-builder v5.12.1
target: Windows.
I uncommented the console.log line so I could see what was happening.
The text was updated successfully, but these errors were encountered: