Failed to sign
See original GitHub issueNot sure where to post this so starting here. When I try to sign our build using certificateFile
and certificatePassword
I get the following stack trace:
Failed with exit code: 4294967295
System.AggregateException: One or more errors occurred. ---> System.Exception: Failed to sign, command invoked was: 'C:\Users\John\Documents\GitHub\shrimp\node_modules\electron-winstaller\vendor\signtool.exe sign /a /f "C:\Users\John\Documents\GitHub\shrimp\cert.pfx" /p "fake-pass" C:\Users\John\AppData\Local\SquirrelTemp\tempb\lib\net45\shrimp.exe'
at Squirrel.Update.Program.<signPEFile>d__9a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.<>c__DisplayClass1e`1.<>c__DisplayClass20.<<ForEachAsync>b__1d>d__22.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Squirrel.Update.Program.<>c__DisplayClass78.<Releasify>b__6a(String pkgPath)
at Squirrel.ReleasePackage.CreateReleasePackage(String outputFile, String packagesRootDir, Func`2 releaseNotesProcessor, Action`1 contentsPostProcessHook)
at Squirrel.Update.Program.Releasify(String package, String targetDir, String packagesDir, String bootstrapperExe, String backgroundGif, String signingOpts, String baseUrl, String setupIcon, Boolean generateMsi)
at Squirrel.Update.Program.executeCommandLine(String[] args)
at Squirrel.Update.Program.main(String[] args)
at Squirrel.Update.Program.Main(String[] args)
---> (Inner Exception #0) System.Exception: Failed to sign, command invoked was: 'C:\Users\John\Documents\GitHub\shrimp\node_modules\electron-winstaller\vendor\signtool.exe sign /a /f "C:\Users\John\Documents\GitHub\shrimp\cert.pfx" /p "fake-pass" C:\Users\John\AppData\Local\SquirrelTemp\tempb\lib\net45\shrimp.exe'
at Squirrel.Update.Program.<signPEFile>d__9a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.<>c__DisplayClass1e`1.<>c__DisplayClass20.<<ForEachAsync>b__1d>d__22.MoveNext()<---
---> (Inner Exception #1) System.Exception: Failed to sign, command invoked was: 'C:\Users\John\Documents\GitHub\shrimp\node_modules\electron-winstaller\vendor\signtool.exe sign /a /f "C:\Users\John\Documents\GitHub\shrimp\cert.pfx" /p "fake-pass" C:\Users\John\AppData\Local\SquirrelTemp\tempb\lib\net45\squirrel.exe'
at Squirrel.Update.Program.<signPEFile>d__9a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.<>c__DisplayClass1e`1.<>c__DisplayClass20.<<ForEachAsync>b__1d>d__22.MoveNext()<---
Couldn’t see a clear problem in the trace, any ideas? Thanks!
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
An error occurred while signing: Failed to sign bin
Found it in 'Project Properties', 'Signing', 'Create Test Certificate'. All works now but would have been nice to hit F1 on the error...
Read more >An error occurred while signing - wpf - Stack Overflow
Go to Main project (Startup Project) and right click > properties Then go to Signing Then unchecked "Sign the ...
Read more >Failed to sign bin\Debug\app.publish\\setup.exe. SignTool Error
I've attempted signing the certificate for the setup.exe and building the project and rebuilding the project. All say they are successful, but ...
Read more >Error: Sign-in failed - Google Ads Editor Help
If you've recently enrolled in 2-step verification, you might see this error message when you sign in to your account in Google Ads...
Read more >Failed to Sign Package | ManageEngine Patch Connect Plus
You are trying to publish third party patches using Patch Connect Plus and you get an error "Failed to Sign Package". Cause. You...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@john-griffin Try running the signtool command yourself and see what happens
Just ran into this error. I ran the signtool command manually and found that my code signing cert had expired. Thanks for the suggestion @paulcbetts!