question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not 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:closed
  • Created 8 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
anaisbettscommented, Mar 7, 2016

@john-griffin Try running the signtool command yourself and see what happens

0reactions
dougludlowcommented, Dec 22, 2016

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found