-
Notifications
You must be signed in to change notification settings - Fork 262
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
Is codesigning supposed to work from non-windows? #27
Comments
It doesn't at the moment, wine doesn't correctly support code signing |
Supposedly, according to the MDN article, wine supports code signing. Is the article out of date? |
I'm working on a fix for this currently to use https://sourceforge.net/projects/osslsigncode/ to sign windows assets from mac. My plan is to add support for it here for installers and on |
I tried to use |
@kevinsawicki Do you mean the example just shows sha1, or the |
Also, thanks for working on this! |
|
Atom switched to dual signing via native |
|
@kevinsawicki just published kevinsawicki/signcode which I think should be used in |
I'm currently trying to do the signing myself using osslsigncode or signcode to sign on my mac for the time being. But I'm curious as to what all files I have to sign? Do I sign all the Squirrel .exe's and my built .exe, then build it and sign the installer? |
I have started work to use https://github.com/kevinsawicki/signcode in the electron-builder (PR will be in this package, of course). |
@mermaid Don't reinvent the wheel. Just use electron-builder — electron-userland/electron-builder#314 (comment) Fixed in my fork/electron-builder — PR will be this/next week. |
@develar It's a good question though. I'm wondering if all the .exe files need to be signed, or not? |
@feross Answered in linked comment — "electron-builder uses signcode to sign app exe regardless of Squirrel.Windows" Yes, you should sign app exe as well. Maybe no one force you to do it, but you should. |
@develar Shouldn't the .dlls also be signed? |
@feross http://stackoverflow.com/a/4716079 But only @kevinsawicki or @paulcbetts can answer as experts. |
@feross You can but it doesn't really make a difference to AV. You should sign your executables, including Squirrel.exe which is hard to do by signing yourself, which is why Squirrel has it built-in as part of its packager. |
electron-builder since 3.20 (will be released soon) will correctly sign your app — dual code sign (sha1+sha256) + timestamp (by default windows-installer on Windows sign using sha1 without timestamp). Sorry, I am not going to prepare PR since intermediate #77 is rejected and I don't want to waste my time and resolve merge conflicts. Anyway solution mostly implemented as part of signcode npm module (PR will be if kevinsawicki/signcode#4) |
@kevinsawicki We still want to use your @develar Is your PR #77 required for |
Yup, currently it only works on Mac, but Linux support should be straightforward, just haven't added it yet. |
For all the Googlers ending up in this issue looking for a solution, I've built a dirty workaround that gets the job done. https://github.com/dustinblackman/mono-signtool |
Just landed here trying to sign my Windows electron application that's being built on my macOS dev machine. @dustinblackman's workaround seems to sidestep the problem but I'm curious if anything was merged into either this repo or |
electron-builder supports codesign on all platforms, including Linux. The only limitation — EV certificate on smartcards not supported. |
cheeky bump |
So, I managed to get around this on Ubuntu 16.04 with a manual sign step using I'm only signing the .exe and not the contents. |
Looking at the thread, it looks like we can drop https://github.com/kevinsawicki/signcode here to support windows code-signing from non-windows from a Mac. Is that correct? Is there any known blocker for that? (Or use electron-builder indeed) |
You can sign exe file in macos using jsign, which is basically java version of Microsoft Authenticode. I had to spend my afternoon for this. Hope this helps.
|
Hi @feross, do you have any idea on how to codesign the electron application in circleci for mac build ? |
When I try to build the app from a non-windows machine (Ubuntu 15.10 in this case), I get the following error:
There's also a long stacktrace not included for the sake of brevity.
The text was updated successfully, but these errors were encountered: