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.

powershell Get-AuthenticodeSignature fails intermittently

See original GitHub issue
  • Version: 19.55.2

2.20.1

  • Target: Win32 (x64)

Hi friends, firstly thanks for all the work you guys put into this library. It’s great.

We have an app in production which uses the electron-updater & electron-builder libraries. The builds and uploads to servers are flawless, and everything is code-signed with a cert from Digicert. 99% of our users are able to update without issues, but ~1-3% send an error like the one below,

Command failed: powershell.exe -NoProfile -NonInteractive -Command Get-AuthenticodeSignature 'C:\Users\wmser\AppData\Local\Temp\up-uLClKA\Blitz Web Setup 0.4.8.exe' | ConvertTo-Json -Compress

in the file

at verifySignature (C:\Program Files\Blitz\resources\app.asar\node_modules\electron-updater\src\windowsExecutableCodeSignatureVerifier.ts:11:3)
at C:\Program Files\Blitz\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:88:18

We’ve reached out and talked to users who ran into this issue, and it normally results in an inability to update the application (sometimes until the next boot, sometimes permanently without a re-install). We tried doing some debugging around the command, but since the bug isn’t 100% repro, didn’t get any luck.

Both the updating version, and the new version are code-signed with the exact same certificate.

Thanks, Jonathan

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
WesamMikhailcommented, Mar 8, 2018

same here.

Any update on this issue?

1reaction
develarcommented, Jun 28, 2018

Ouch, missed this issue. Thanks to @akashnimare who pings me often using slack.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems signing powershell script
I'm using that cert to sign my powershell scripts. Here's where I am at: ... PS U:\> Get-AuthenticodeSignature C:\temp\powershelltest.ps1
Read more >
Unable to Sign PowerShell Scripts
I have a valid code signing cert installed on my machine and run the following commands. Any suggestions? PS C:\Users\u00\bin> $cert = @(Get- ......
Read more >
Get-authenticodesignature always shows NotSigned
Anyone knows why get-authenticodesignature in powershell always shows the .dll or .exe file as NotSigned while it is showen as signed if I...
Read more >
May | 2014 | >_ - de parvis grandis acervus erit
My test computer is Windows 7 x64 machine with PowerShell 3.0 installed. ... Note that the Get-AuthenticodeSignature reports both portable ...
Read more >
The module 'VMware.VimAutomation.Sdk' cannot be in...
authenticode signature of the file 'VMware.VimAutomation.Sdk.cat' is not valid. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.
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