-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
SignTool Error #3112
Comments
Please set env
Which one? |
I tested it now on the old version too without success :( Here is the Error Code: http://prntscr.com/k68jif Or did you need something else? |
Are you sure that cert is not It expired? |
No its not expired, look here again: https://prnt.sc/k5tq1z |
I am having the same issue. I was successfully able to built and sign two weeks ago. Came to pick up my project today and unfortunately, it's no longer working. Same comment on the certificate expiry: it's brand new and does not expire until 2020. |
So, I can't explain why, but commenting out this line
|
@richard-ive-m4 Please do not comment this line, it is critically important. Please try to set
Does it help? |
No, it doesn't work on me. |
Nope, didn't work I'm afraid. I can see that it has correctly changed the timestamp server in the debug message, but I still get "SignTool Error: The specified private key container was not found." Can you explain why /fd is so important? |
What is your windows version? |
Microsoft Windows [Version 10.0.17134.165] |
Without /fd your app will be signed only with SHA1 — but this digest algo is compromised and deprecated. |
Do you use latest electron-builder? |
yes I updated electron-builder today, win10 pro version 10.0.17134 |
Ok... I have no clue anymore... @Xedon420 I your config I see that you use Squirrel.Windows, @richard-ive-m4 but you use NSIS, right? |
Yes. I'm running Windows
electron-builder
|
"build": { |
Squirrel: |
or do you need something else? @develar |
Please try electron-builder 20.23.0 signtool updated latest win 10 sdk 10.0.17134.0 Maybe it will help. |
I'm sorry didn't work out again. (the same error) electron-builder at 20.23.0 and downloaded the winCodeSign tool to version 2.2.0 |
It now fails during the inital download of signtool
|
Will be fixed / investigated this week. |
Hi @develar. We you able to get to the bottom of this? Happy to help in any way I can. |
Not yet. But our CI test fails with the same error. Issue on my radar. |
is there now a solution to the problem? |
So I'm afraid this isn't overly helpful for everyone, but I have been able to sign correctly using electron-builder. I noticed that the Windows docs (https://docs.microsoft.com/en-us/windows/desktop/seccrypto/signtool) says:
So I:
|
@richard-ive-m4 You are hero, thanks a lot :) F*** MS :( |
Unfortunately the solution doesn't work for me... Then I downloaded the Windows SDK and tested it again with the version "10.0.17134.0", but also here the same error. Currently I have Windows 10 build 17134.228 installed |
I had a similar issue to yours. I have spent one day trying to figure it out. Not sure if your problem is the exact same as mine, but in any case, here is what I did:
I sorted the files by date and realized that there were three files with the same date as the day I tried to add the certificates to my storage (one for each cert). For some malicious reason (I call it Microsoft), when I deleted the certificates it seems that my private keys ended up staying on my system. So, after removing the certificates on the "user certificates (mmc)" and removing the private keys on both folders, I did a reboot (just in case) and voilà, everything is working properly now. PS: My problem was not related to this project, just with Microsoft signing tools. |
Also have a look at https://stackoverflow.com/a/31138059/4549776 Here is another solution related to a problem with codesigning using electron builder on Travis Windows builds: https://travis-ci.community/t/codesigning-on-windows/1385 |
I want to sign my code with my own cert (now accepted by windows, it means no security warning from Smart Screen, so I don't need a verified cert at the moment).
This is not my first code sign and therefore I was very surprised when I got this error:
"SignTool Error: The specified private key container was not found."
(winCodeSign version: 2.1.0). I've been using an older electron builder version for a long time now and think there was a change.
Anybody have any idea what that might be?
For your information, in the package.json certificateFile and certificate Password are defined and have not been changed since the last successful code sign. Cert's information is also recognized and output correctly: http://prntscr.com/k5tq1z
The text was updated successfully, but these errors were encountered: