-
-
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
Windows 10: SignTool Error: No certificates were found that met all the given criteria. #1673
Comments
Can you retry with **file://**c:/Users/duder/dev/MyCorp/apps/certs/MyCorp_code.p12? |
Thanks for the suggestion. Unfortunately it doesn't seem to change anything. One thing I find suspicious is that I don't see the cert filename on the |
Please ensure that p12 file contains not only cert but private Key also. Try to install execute command in the terminal directly. |
I was finally able to get this working by removing the entire "win" section from my packages.json (i.e. certificateSubjectName & publisherName). This is surprising since the docs make it sound like these fields are required and it turns out I needed to not have them. :) |
Why? How can be improved? |
The doc says:
In my case I am indeed doing EV Code Signing, so the doc is suggesting that the field is required. Instead, it was actually causing my problem (though I don't know why). For publisherName, now that I've re-read the docs, it seems clear that it's not required (unless someone edited the docs out from under me :) ). Thanks. |
Hmmm, for EV cert it is required since EV cert is not available as file, but you state that you have a file? |
Agh, you are totally correct. I got the type of cert name confused. Sorry for wasting your time. I guess there is still the question of why including the info caused a problem.. |
i am using this code block to sign in , i am also getting the same error "build":{ |
Hi, I had a similar issue due to a domain account change. Take a look at here |
Turns out my private key was missing. I downloaded my crt from another computer. Ended up having to create a new crt from the computer I was using. |
I'm getting this error too. @develar @logidelic @jolamar Version: 21.2.0 I'm running Windows 10 in Parallels Pro and am using a self-signed certificate which I imported into:
I can sign the appx if I remove the the "win" segment from config. Electron builder reports success. However, if I check the resulting appx file in windows inspector, the "Digital Signatures" tab is missing from "Properties" panel. If the "win" section is present, the build fails and I get the "No certificates..." error. My config:
The certificate is fine. I can run this in powershell:
and it works. And if I inspect that file, it has "Digital Signatures" panel. I generated the certificate like this:
What's wrong? Why does electron builder report success when the resulting file is actually not signed according to windows. Thanks in advance! |
Trying to sign my app (with a DigiCert Code Signing Certificate), I'm currently getting the following error:
My
package.json
specifies the cert as follows:I've also tried specifying the cert/pass in the CSC_LINK/CSC_KEY_PASSWORD environment variables.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: