signalapp / Signal-Desktop

A private messenger for Windows, macOS, and Linux.
https://signal.org/download
GNU Affero General Public License v3.0
14.63k stars 2.66k forks source link

Windows: Command failed: powershell.exe ... Get-AuthenticodeSignature #3059

Open c0fe opened 5 years ago

c0fe commented 5 years ago

Bug Description

I was not using my PC for a little while, the screen turned back. When I came back and turned the PC on I saw the error message.

Steps to Reproduce

Not sure on how to reproduce, was not able to.

Platform Info

Signal Version:

1.19.0

Operating System:

Windows 10 Professional

Linked Device Version:

4.31.6

Error:

Unhandled Promise Rejection
Error: Command failed: powershell.exe -NoProfile -NonInteractive -InputFormat None -Command Get-AuthenticodeSignature 'C:\Users\User\AppData\Roaming\Signal\temp-installer-1.20.0.exe' | ConvertTo-Json -Compress

    at ChildProcess.exithandler (child_process.js:303:12)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:961:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
From previous event:
    at verifySignature (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\windowsExecutableCodeSignatureVerifier.ts:11:3)
    at C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:93:18
From previous event:
    at NsisUpdater.verifySignature (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\NsisUpdater.js:209:7)
    at Object.<anonymous> (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:41:56)
    at Generator.next (<anonymous>)
From previous event:
    at Object.task (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\NsisUpdater.js:177:25)
    at C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\BaseUpdater.ts:83:25
    at Generator.throw (<anonymous>)
From previous event:
    at NsisUpdater.executeDownload (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\BaseUpdater.js:164:7)
    at C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:31:23
From previous event:
    at NsisUpdater.doDownloadUpdate (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\NsisUpdater.js:181:7)
    at C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:361:25
    at Generator.next (<anonymous>)
From previous event:
    at NsisUpdater.downloadUpdate (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\AppUpdater.js:539:7)
    at C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:337:49
From previous event:
    at NsisUpdater.doCheckForUpdates (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\AppUpdater.js:502:7)
    at C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:279:25
    at Generator.next (<anonymous>)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
From previous event:
    at NsisUpdater._checkForUpdates (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\AppUpdater.js:433:7)
    at NsisUpdater.checkForUpdates (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:217:35)
    at Timeout.checkForUpdates [as _onTimeout] (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\app\auto_update.js:22:15)
    at ontimeout (timers.js:427:11)
    at tryOnTimeout (timers.js:289:5)
    at listOnTimeout (timers.js:252:5)
    at Timer.processTimers (timers.js:212:10)

Link to Debug Log

https://debuglogs.org/a05dcdfb5897c94eef2359f6fc2e06db301c2408f26f342d6e861b5f912f2396

scottnonnenberg-signal commented 5 years ago

You can help us out by opening up a Command Prompt, typing powershell $PSVersionTable.PSVersion then hitting Enter. Do you use powershell on your computer?

c0fe commented 5 years ago

@scottnonnenberg Running the Requested Command:

C:\WINDOWS\system32>powershell $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      17763  134
RiseT commented 5 years ago

Just got the same error message when launching Signal Desktop (after launching it again, it updated itself to 1.20.0):


Unhandled Promise Rejection
Error: Command failed: powershell.exe -NoProfile -NonInteractive -InputFormat None -Command Get-AuthenticodeSignature 'C:\Users\Name\AppData\Roaming\Signal\temp-installer-1.20.0.exe' | ConvertTo-Json -Compress

    at ChildProcess.exithandler (child_process.js:303:12)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:961:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
From previous event:
    at verifySignature (C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\windowsExecutableCodeSignatureVerifier.ts:11:3)
    at C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:93:18
From previous event:
    at NsisUpdater.verifySignature (C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\NsisUpdater.js:209:7)
    at Object.<anonymous> (C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:41:56)
    at Generator.next (<anonymous>)
From previous event:
    at Object.task (C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\NsisUpdater.js:177:25)
    at C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\BaseUpdater.ts:83:25
    at Generator.throw (<anonymous>)
From previous event:
    at NsisUpdater.executeDownload (C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\BaseUpdater.js:164:7)
    at C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:31:23
From previous event:
    at NsisUpdater.doDownloadUpdate (C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\NsisUpdater.js:181:7)
    at C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:361:25
    at Generator.next (<anonymous>)
From previous event:
    at NsisUpdater.downloadUpdate (C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\AppUpdater.js:539:7)
    at C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:337:49
From previous event:
    at NsisUpdater.doCheckForUpdates (C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\AppUpdater.js:502:7)
    at C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:279:25
    at Generator.next (<anonymous>)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
From previous event:
    at NsisUpdater._checkForUpdates (C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\AppUpdater.js:433:7)
    at NsisUpdater.checkForUpdates (C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:217:35)
    at checkForUpdates (C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\app\auto_update.js:22:15)
    at Object.initialize (C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\app\auto_update.js:78:3)
    at App.app.on (C:\Users\Name\AppData\Local\Programs\signal-desktop\resources\app.asar\main.js:691:14)F
powershell $PSVersionTable.PSVersion:

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      17134  407

Do you use powershell on your computer?

Yes (e. g. Chocolatey)

scottnonnenberg-signal commented 5 years ago

The next thing we could try is to try to run the command shown above (maybe choose an arbitrary binary as a target, or a newly-downloaded Signal Desktop installer) and see what the specific error coming back from powershell is.

RiseT commented 5 years ago

Which command? This?

powershell.exe -NoProfile -NonInteractive -InputFormat None -Command Get-AuthenticodeSignature 'signal-desktop-win-1.20.0.exe'

If yes, this is the output with a newly downloaded Signal Desktop installer:

SignerCertificate                         Status                                 Path
-----------------                         ------                                 ----
77B2AA4421E5F377454B8B91E573746592D1543D  Valid                                  signal-desktop-win-1.20.0.exe
scottnonnenberg-signal commented 5 years ago

Okay, now pipe it to the JSON tool with the rest of the command line: | ConvertTo-Json -Compress

RiseT commented 5 years ago

Does this piping work with the cmd console? I've tried the full command before, but this only seems to work without an error (the result is basically the same output as mentioned above, messily formatted) inside of PowerShell. Using the cmd console, I'm getting an error (it says that "ConvertTo-Json" is misspelled or cannot be found).

scottnonnenberg-signal commented 5 years ago

This page seems to show examples of using it piped: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/convertto-json?view=powershell-6

In the past we've had problems due to customization of powershell configuration... but this seems a bit like a command just isn't available anymore or something. Maybe the pipe needs to be escaped because Command Prompt is parsing it differently?

The whole thing is strange, because this has worked in the past. Is it a new Powershell version causing the problem? Configuration on a specific machine? Installation source for Powershell, if you're installing via Chocolatey?

RiseT commented 5 years ago

Just Get-AuthenticodeSignature 'signal-desktop-win-1.20.0.exe' | ConvertTo-Json -Compress executed from within PowerShell does work, if this helps (lengthy output).

RiseT commented 5 years ago

@scottnonnenberg-signal I've fiddled a bit with that command and have something that "works" from within the command prompt (if it really works depends on the desired outcome which I don't know):

Command:

powershell.exe -NoProfile -NonInteractive -InputFormat None -Command "Get-AuthenticodeSignature 'signal-desktop-win-1.20.0.exe' | ConvertTo-Json -Compress"

Output:

{"SignerCertificate":{"Archived":false,"Extensions":["System.Security.Cryptography.X509Certificates.X509KeyUsageExtension","System.Security.Cryptography.X509Certificates.X509EnhancedKeyUsageExtension","System.Security.Cryptography.X509Certificates.X509Extension","System.Security.Cryptography.X509Certificates.X509Extension","System.Security.Cryptography.X509Certificates.X509Extension","System.Security.Cryptography.X509Certificates.X509Extension","System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension","System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension"],"FriendlyName":"","IssuerName":{"Name":"CN=Entrust Extended Validation Code Signing CA - EVCS1, OU=\"(c) 2015 Entrust, Inc. - for authorized use only\", OU=See www.entrust.net/legal-terms, O=\"Entrust, Inc.\", C=US","Oid":"System.Security.Cryptography.Oid","RawData":"48 129 200 49 11 48 9 6 3 85 4 6 19 2 85 83 49 22 48 20 6 3 85 4 10 19 13 69 110 116 114 117 115 116 44 32 73 110 99 46 49 40 48 38 6 3 85 4 11 19 31 83 101 101 32 119 119 119 46 101 110 116 114 117 115 116 46 110 101 116 47 108 101 103 97 108 45 116 101 114 109 115 49 57 48 55 6 3 85 4 11 19 48 40 99 41 32 50 48 49 53 32 69 110 116 114 117 115 116 44 32 73 110 99 46 32 45 32 102 111 114 32 97 117 116 104 111 114 105 122 101 100 32 117 115 101 32 111 110 108 121 49 60 48 58 6 3 85 4 3 19 51 69 110 116 114 117 115 116 32 69 120 116 101 110 100 101 100 32 86 97 108 105 100 97 116 105 111 110 32 67 111 100 101 32 83 105 103 110 105 110 103 32 67 65 32 45 32 69 86 67 83 49"},"NotAfter":"\/Date(1601231996000)\/","NotBefore":"\/Date(1506535813000)\/","HasPrivateKey":false,"PrivateKey":null,"PublicKey":{"Key":"System.Security.Cryptography.RSACryptoServiceProvider","Oid":"System.Security.Cryptography.Oid","EncodedKeyValue":"System.Security.Cryptography.AsnEncodedData","EncodedParameters":"System.Security.Cryptography.AsnEncodedData"},"RawData":[48,130,5,180,48,130,4,156,160,3,2,1,2,2,17,0,161,82,180,127,161,19,240,237,0,0,0,0,85,101,76,142,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,129,200,49,11,48,9,6,3,85,4,6,19,2,85,83,49,22,48,20,6,3,85,4,10,19,13,69,110,116,114,117,115,116,44,32,73,110,99,46,49,40,48,38,6,3,85,4,11,19,31,83,101,101,32,119,119,119,46,101,110,116,114,117,115,116,46,110,101,116,47,108,101,103,97,108,45,116,101,114,109,115,49,57,48,55,6,3,85,4,11,19,48,40,99,41,32,50,48,49,53,32,69,110,116,114,117,115,116,44,32,73,110,99,46,32,45,32,102,111,114,32,97,117,116,104,111,114,105,122,101,100,32,117,115,101,32,111,110,108,121,49,60,48,58,6,3,85,4,3,19,51,69,110,116,114,117,115,116,32,69,120,116,101,110,100,101,100,32,86,97,108,105,100,97,116,105,111,110,32,67,111,100,101,32,83,105,103,110,105,110,103,32,67,65,32,45,32,69,86,67,83,49,48,30,23,13,49,55,48,57,50,55,49,56,49,48,49,51,90,23,13,50,48,48,57,50,55,49,56,51,57,53,54,90,48,129,254,49,11,48,9,6,3,85,4,6,19,2,85,83,49,19,48,17,6,3,85,4,8,19,10,67,97,108,105,102,111,114,110,105,97,49,22,48,20,6,3,85,4,7,19,13,77,111,117,110,116,97,105,110,32,86,105,101,119,49,19,48,17,6,11,43,6,1,4,1,130,55,60,2,1,3,19,2,85,83,49,27,48,25,6,11,43,6,1,4,1,130,55,60,2,1,2,19,10,67,97,108,105,102,111,114,110,105,97,49,44,48,42,6,3,85,4,10,19,35,83,105,103,110,97,108,32,40,81,117,105,101,116,32,82,105,100,100,108,101,32,86,101,110,116,117,114,101,115,44,32,76,76,67,41,49,29,48,27,6,3,85,4,15,19,20,80,114,105,118,97,116,101,32,79,114,103,97,110,105,122,97,116,105,111,110,49,21,48,19,6,3,85,4,5,19,12,50,48,49,50,49,53,55,49,48,48,48,55,49,44,48,42,6,3,85,4,3,19,35,83,105,103,110,97,108,32,40,81,117,105,101,116,32,82,105,100,100,108,101,32,86,101,110,116,117,114,101,115,44,32,76,76,67,41,48,130,1,34,48,13,6,9,42,134,72,134,247,13,1,1,1,5,0,3,130,1,15,0,48,130,1,10,2,130,1,1,0,178,110,85,127,99,3,128,31,93,51,37,26,232,45,137,3,27,161,168,143,188,145,83,29,245,213,219,231,97,231,126,245,2,182,247,83,110,9,92,11,7,118,51,142,207,73,173,2,11,210,176,222,246,38,157,26,255,170,129,198,187,85,193,8,9,225,50,41,150,126,152,25,209,170,252,162,189,201,99,185,171,147,56,234,185,29,140,192,166,160,238,16,232,180,198,39,225,214,164,191,7,107,168,123,210,44,239,163,198,19,188,215,30,209,64,61,232,136,107,91,49,95,118,146,122,201,177,251,124,63,15,90,86,133,37,133,102,220,130,231,164,125,210,27,131,17,145,84,73,74,77,115,212,33,92,110,247,181,59,170,129,41,149,136,42,200,7,218,93,117,232,214,158,198,157,249,167,136,83,98,237,246,209,75,251,34,28,251,201,129,145,228,30,61,10,50,229,113,186,57,13,102,54,236,197,13,202,236,147,144,243,92,2,70,107,171,135,178,188,37,111,46,218,61,25,175,116,166,228,40,130,232,83,133,154,73,28,176,2,41,82,207,238,229,8,236,223,107,95,119,176,198,141,228,92,205,2,3,1,0,1,163,130,1,95,48,130,1,91,48,14,6,3,85,29,15,1,1,255,4,4,3,2,7,128,48,19,6,3,85,29,37,4,12,48,10,6,8,43,6,1,5,5,7,3,3,48,106,6,8,43,6,1,5,5,7,1,1,4,94,48,92,48,35,6,8,43,6,1,5,5,7,48,1,134,23,104,116,116,112,58,47,47,111,99,115,112,46,101,110,116,114,117,115,116,46,110,101,116,48,53,6,8,43,6,1,5,5,7,48,2,134,41,104,116,116,112,58,47,47,97,105,97,46,101,110,116,114,117,115,116,46,110,101,116,47,101,118,99,115,49,45,99,104,97,105,110,50,53,54,46,99,101,114,48,49,6,3,85,29,31,4,42,48,40,48,38,160,36,160,34,134,32,104,116,116,112,58,47,47,99,114,108,46,101,110,116,114,117,115,116,46,110,101,116,47,101,118,99,115,49,46,99,114,108,48,74,6,3,85,29,32,4,67,48,65,48,54,6,10,96,134,72,1,134,250,108,10,1,2,48,40,48,38,6,8,43,6,1,5,5,7,2,1,22,26,104,116,116,112,58,47,47,119,119,119,46,101,110,116,114,117,115,116,46,110,101,116,47,114,112,97,48,7,6,5,103,129,12,1,3,48,31,6,3,85,29,35,4,24,48,22,128,20,42,10,111,50,44,41,32,33,118,106,177,172,140,60,175,147,142,14,107,162,48,29,6,3,85,29,14,4,22,4,20,147,25,186,153,54,106,88,11,85,34,154,110,235,136,182,130,70,149,230,165,48,9,6,3,85,29,19,4,2,48,0,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,1,1,0,77,18,66,28,9,200,214,157,110,100,103,208,40,119,87,51,13,234,20,149,59,63,218,77,132,186,63,45,64,8,182,49,16,120,11,100,98,68,201,125,129,166,178,249,197,41,58,116,209,57,48,112,164,9,211,240,151,155,114,6,103,86,0,178,179,101,192,216,126,224,120,100,141,102,140,68,100,170,203,39,94,182,186,59,37,252,41,49,198,160,169,53,97,83,152,136,154,131,147,212,83,60,238,63,195,10,135,25,52,249,144,136,202,8,21,250,169,44,110,155,215,189,137,203,13,105,2,125,48,225,49,151,116,232,93,91,193,142,89,120,24,55,72,189,208,234,206,231,11,12,106,209,154,23,9,36,254,83,36,219,146,14,140,104,240,49,30,114,92,180,112,39,42,197,151,38,123,103,179,236,31,241,43,133,59,86,120,117,242,29,25,205,214,233,21,63,152,43,168,221,205,248,99,4,172,143,249,0,86,16,98,49,188,130,184,203,160,5,233,48,118,5,139,175,41,119,93,139,43,23,102,208,62,4,218,50,135,116,229,251,244,212,125,137,100,68,158,122,90,184,33,121,65,57,28,157],"SerialNumber":"00A152B47FA113F0ED0000000055654C8E","SubjectName":{"Name":"CN=\"Signal (Quiet Riddle Ventures, LLC)\", SERIALNUMBER=201215710007, OID.2.5.4.15=Private Organization, O=\"Signal (Quiet Riddle Ventures, LLC)\", OID.1.3.6.1.4.1.311.60.2.1.2=California, OID.1.3.6.1.4.1.311.60.2.1.3=US, L=Mountain View, S=California, C=US","Oid":"System.Security.Cryptography.Oid","RawData":"48 129 254 49 11 48 9 6 3 85 4 6 19 2 85 83 49 19 48 17 6 3 85 4 8 19 10 67 97 108 105 102 111 114 110 105 97 49 22 48 20 6 3 85 4 7 19 13 77 111 117 110 116 97 105 110 32 86 105 101 119 49 19 48 17 6 11 43 6 1 4 1 130 55 60 2 1 3 19 2 85 83 49 27 48 25 6 11 43 6 1 4 1 130 55 60 2 1 2 19 10 67 97 108 105 102 111 114 110 105 97 49 44 48 42 6 3 85 4 10 19 35 83 105 103 110 97 108 32 40 81 117 105 101 116 32 82 105 100 100 108 101 32 86 101 110 116 117 114 101 115 44 32 76 76 67 41 49 29 48 27 6 3 85 4 15 19 20 80 114 105 118 97 116 101 32 79 114 103 97 110 105 122 97 116 105 111 110 49 21 48 19 6 3 85 4 5 19 12 50 48 49 50 49 53 55 49 48 48 48 55 49 44 48 42 6 3 85 4 3 19 35 83 105 103 110 97 108 32 40 81 117 105 101 116 32 82 105 100 100 108 101 32 86 101 110 116 117 114 101 115 44 32 76 76 67 41"},"SignatureAlgorithm":{"Value":"1.2.840.113549.1.1.11","FriendlyName":"sha256RSA"},"Thumbprint":"77B2AA4421E5F377454B8B91E573746592D1543D","Version":3,"Handle":1876883573696,"Issuer":"CN=Entrust Extended Validation Code Signing CA - EVCS1, OU=\"(c) 2015 Entrust, Inc. - for authorized use only\", OU=See www.entrust.net/legal-terms, O=\"Entrust, Inc.\", C=US","Subject":"CN=\"Signal (Quiet Riddle Ventures, LLC)\", SERIALNUMBER=201215710007, OID.2.5.4.15=Private Organization, O=\"Signal (Quiet Riddle Ventures, LLC)\", OID.1.3.6.1.4.1.311.60.2.1.2=California, OID.1.3.6.1.4.1.311.60.2.1.3=US, L=Mountain View, S=California, C=US"},"TimeStamperCertificate":{"Archived":false,"Extensions":["System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension","System.Security.Cryptography.X509Certificates.X509EnhancedKeyUsageExtension","System.Security.Cryptography.X509Certificates.X509KeyUsageExtension","System.Security.Cryptography.X509Certificates.X509Extension","System.Security.Cryptography.X509Certificates.X509Extension","System.Security.Cryptography.X509Certificates.X509Extension","System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension","System.Security.Cryptography.X509Certificates.X509Extension"],"FriendlyName":"","IssuerName":{"Name":"CN=Symantec Time Stamping Services CA - G2, O=Symantec Corporation, C=US","Oid":"System.Security.Cryptography.Oid","RawData":"48 94 49 11 48 9 6 3 85 4 6 19 2 85 83 49 29 48 27 6 3 85 4 10 19 20 83 121 109 97 110 116 101 99 32 67 111 114 112 111 114 97 116 105 111 110 49 48 48 46 6 3 85 4 3 19 39 83 121 109 97 110 116 101 99 32 84 105 109 101 32 83 116 97 109 112 105 110 103 32 83 101 114 118 105 99 101 115 32 67 65 32 45 32 71 50"},"NotAfter":"\/Date(1609286399000)\/","NotBefore":"\/Date(1350518400000)\/","HasPrivateKey":false,"PrivateKey":null,"PublicKey":{"Key":"System.Security.Cryptography.RSACryptoServiceProvider","Oid":"System.Security.Cryptography.Oid","EncodedKeyValue":"System.Security.Cryptography.AsnEncodedData","EncodedParameters":"System.Security.Cryptography.AsnEncodedData"},"RawData":[48,130,4,163,48,130,3,139,160,3,2,1,2,2,16,14,207,244,56,200,254,191,53,110,4,216,106,152,27,26,80,48,13,6,9,42,134,72,134,247,13,1,1,5,5,0,48,94,49,11,48,9,6,3,85,4,6,19,2,85,83,49,29,48,27,6,3,85,4,10,19,20,83,121,109,97,110,116,101,99,32,67,111,114,112,111,114,97,116,105,111,110,49,48,48,46,6,3,85,4,3,19,39,83,121,109,97,110,116,101,99,32,84,105,109,101,32,83,116,97,109,112,105,110,103,32,83,101,114,118,105,99,101,115,32,67,65,32,45,32,71,50,48,30,23,13,49,50,49,48,49,56,48,48,48,48,48,48,90,23,13,50,48,49,50,50,57,50,51,53,57,53,57,90,48,98,49,11,48,9,6,3,85,4,6,19,2,85,83,49,29,48,27,6,3,85,4,10,19,20,83,121,109,97,110,116,101,99,32,67,111,114,112,111,114,97,116,105,111,110,49,52,48,50,6,3,85,4,3,19,43,83,121,109,97,110,116,101,99,32,84,105,109,101,32,83,116,97,109,112,105,110,103,32,83,101,114,118,105,99,101,115,32,83,105,103,110,101,114,32,45,32,71,52,48,130,1,34,48,13,6,9,42,134,72,134,247,13,1,1,1,5,0,3,130,1,15,0,48,130,1,10,2,130,1,1,0,162,99,11,57,68,184,187,35,167,68,73,187,14,255,161,240,97,10,83,147,176,152,219,173,44,15,74,197,110,255,134,60,83,85,15,21,206,4,63,43,253,169,150,150,217,190,97,121,11,91,201,76,134,118,229,224,67,75,34,149,238,194,43,67,193,159,216,104,180,142,64,79,238,133,56,185,17,197,35,242,100,88,240,21,50,111,78,87,161,174,136,164,2,215,42,30,205,75,225,221,99,213,23,137,50,91,176,94,153,90,168,157,40,80,14,23,238,150,219,97,59,69,81,29,207,18,86,11,146,71,252,171,174,246,102,61,71,172,112,114,231,146,231,95,205,16,185,196,131,100,148,25,189,37,128,225,232,210,34,165,208,186,2,122,161,119,147,91,101,195,238,23,116,188,65,134,42,220,8,76,140,146,140,145,45,158,119,68,31,104,214,168,116,119,219,14,91,50,139,86,139,51,189,217,99,200,73,157,58,197,197,234,51,11,210,241,163,27,244,139,190,217,179,87,139,59,222,4,167,122,34,178,36,174,46,199,112,197,190,78,131,38,8,251,11,189,169,79,153,8,225,16,40,114,170,205,2,3,1,0,1,163,130,1,87,48,130,1,83,48,12,6,3,85,29,19,1,1,255,4,2,48,0,48,22,6,3,85,29,37,1,1,255,4,12,48,10,6,8,43,6,1,5,5,7,3,8,48,14,6,3,85,29,15,1,1,255,4,4,3,2,7,128,48,115,6,8,43,6,1,5,5,7,1,1,4,103,48,101,48,42,6,8,43,6,1,5,5,7,48,1,134,30,104,116,116,112,58,47,47,116,115,45,111,99,115,112,46,119,115,46,115,121,109,97,110,116,101,99,46,99,111,109,48,55,6,8,43,6,1,5,5,7,48,2,134,43,104,116,116,112,58,47,47,116,115,45,97,105,97,46,119,115,46,115,121,109,97,110,116,101,99,46,99,111,109,47,116,115,115,45,99,97,45,103,50,46,99,101,114,48,60,6,3,85,29,31,4,53,48,51,48,49,160,47,160,45,134,43,104,116,116,112,58,47,47,116,115,45,99,114,108,46,119,115,46,115,121,109,97,110,116,101,99,46,99,111,109,47,116,115,115,45,99,97,45,103,50,46,99,114,108,48,40,6,3,85,29,17,4,33,48,31,164,29,48,27,49,25,48,23,6,3,85,4,3,19,16,84,105,109,101,83,116,97,109,112,45,50,48,52,56,45,50,48,29,6,3,85,29,14,4,22,4,20,70,198,105,163,14,74,20,30,213,76,218,82,99,23,63,94,54,188,13,230,48,31,6,3,85,29,35,4,24,48,22,128,20,95,154,245,110,92,204,204,116,154,212,221,125,239,63,219,236,76,128,46,221,48,13,6,9,42,134,72,134,247,13,1,1,5,5,0,3,130,1,1,0,120,59,180,145,42,0,76,240,143,98,48,55,120,163,132,39,7,111,24,178,222,37,220,160,212,148,3,170,134,78,37,159,154,64,3,28,221,206,227,121,203,33,104,6,218,182,50,180,109,191,244,44,38,99,51,228,73,100,109,13,230,195,103,14,247,5,164,53,108,124,137,22,198,233,178,223,178,233,221,32,198,113,15,205,149,116,220,182,92,222,189,55,31,67,120,230,120,181,205,40,4,32,163,170,241,75,196,136,41,145,14,128,209,17,252,221,92,118,110,79,94,14,69,70,65,110,13,176,234,56,154,177,58,218,9,113,16,252,28,121,180,128,123,172,105,244,253,156,182,12,22,43,241,127,91,9,61,155,91,226,22,202,19,129,109,0,46,56,13,168,41,143,44,225,178,244,90,169,1,175,21,156,44,47,73,27,219,34,187,195,254,120,148,81,195,134,177,130,136,93,240,61,180,81,161,121,51,43,46,123,185,220,32,9,19,113,235,106,25,91,207,232,165,48,87,44,137,73,63,185,207,127,201,191,62,34,104,99,83,154,189,105,116,172,197,29,60,127,146,224,195,188,28,216,4,117],"SerialNumber":"0ECFF438C8FEBF356E04D86A981B1A50","SubjectName":{"Name":"CN=Symantec Time Stamping Services Signer - G4, O=Symantec Corporation, C=US","Oid":"System.Security.Cryptography.Oid","RawData":"48 98 49 11 48 9 6 3 85 4 6 19 2 85 83 49 29 48 27 6 3 85 4 10 19 20 83 121 109 97 110 116 101 99 32 67 111 114 112 111 114 97 116 105 111 110 49 52 48 50 6 3 85 4 3 19 43 83 121 109 97 110 116 101 99 32 84 105 109 101 32 83 116 97 109 112 105 110 103 32 83 101 114 118 105 99 101 115 32 83 105 103 110 101 114 32 45 32 71 52"},"SignatureAlgorithm":{"Value":"1.2.840.113549.1.1.5","FriendlyName":"sha1RSA"},"Thumbprint":"65439929B67973EB192D6FF243E6767ADF0834E4","Version":3,"Handle":1876883574976,"Issuer":"CN=Symantec Time Stamping Services CA - G2, O=Symantec Corporation, C=US","Subject":"CN=Symantec Time Stamping Services Signer - G4, O=Symantec Corporation, C=US"},"Status":0,"StatusMessage":"Signatur wurde überprüft.","Path":"D:\\Users\\Name\\Downloads\\signal-desktop-win-1.20.0.exe","SignatureType":1,"IsOSBinary":false}
c0fe commented 5 years ago

Running the command gets me this:

C:\WINDOWS\system32>powershell.exe -NoProfile -NonInteractive -InputFormat None -Command "Get-AuthenticodeSignature 'signal-desktop-win-1.20.0.exe' | ConvertTo-Json -Compress"
Get-AuthenticodeSignature : File signal-desktop-win-1.20.0.exe was not found.
At line:1 char:1
+ Get-AuthenticodeSignature 'signal-desktop-win-1.20.0.exe' | ConvertTo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (:) [Get-AuthenticodeSignature], FileNotFoundException
    + FullyQualifiedErrorId : SignatureCommandsBaseFileNotFound,Microsoft.PowerShell.Commands.GetAuthenticodeSignature
   Command
RiseT commented 5 years ago

@c0fe The reason that you're getting an error is probably that you don't have the file "signal-desktop-win-1.20.0.exe" (which is just the usual downloadable installer for Signal Desktop) in the directory from which you execute the command.

c0fe commented 5 years ago

@RiseT ok this is the output:

C:\Users\c0fe\Downloads>powershell.exe -NoProfile -NonInteractive -InputFormat None -Command "Get-AuthenticodeSignature 'signal-desktop-win-1.20.0.exe' | ConvertTo-Json -Compress"
{"SignerCertificate":{"Archived":false,"Extensions":["System.Security.Cryptography.X509Certificates.X509KeyUsageExtension","System.Security.Cryptography.X509Certificates.X509EnhancedKeyUsageExtension","System.Security.Cryptography.X509Certificates.X509Extension","System.Security.Cryptography.X509Certificates.X509Extension","System.Security.Cryptography.X509Certificates.X509Extension","System.Security.Cryptography.X509Certificates.X509Extension","System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension","System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension"],"FriendlyName":"","IssuerName":{"Name":"CN=Entrust Extended Validation Code Signing CA - EVCS1, OU=\"(c) 2015 Entrust, Inc. - for authorized use only\", OU=See www.entrust.net/legal-terms, O=\"Entrust, Inc.\", C=US","Oid":"System.Security.Cryptography.Oid","RawData":"48 129 200 49 11 48 9 6 3 85 4 6 19 2 85 83 49 22 48 20 6 3 85 4 10 19 13 69 110 116 114 117 115 116 44 32 73 110 99 46 49 40 48 38 6 3 85 4 11 19 31 83 101 101 32 119 119 119 46 101 110 116 114 117 115 116 46 110 101 116 47 108 101 103 97 108 45 116 101 114 109 115 49 57 48 55 6 3 85 4 11 19 48 40 99 41 32 50 48 49 53 32 69 110 116 114 117 115 116 44 32 73 110 99 46 32 45 32 102 111 114 32 97 117 116 104 111 114 105 122 101 100 32 117 115 101 32 111 110 108 121 49 60 48 58 6 3 85 4 3 19 51 69 110 116 114 117 115 116 32 69 120 116 101 110 100 101 100 32 86 97 108 105 100 97 116 105 111 110 32 67 111 100 101 32 83 105 103 110 105 110 103 32 67 65 32 45 32 69 86 67 83 49"},"NotAfter":"\/Date(1601231996000)\/","NotBefore":"\/Date(1506535813000)\/","HasPrivateKey":false,"PrivateKey":null,"PublicKey":{"Key":"System.Security.Cryptography.RSACryptoServiceProvider","Oid":"System.Security.Cryptography.Oid","EncodedKeyValue":"System.Security.Cryptography.AsnEncodedData","EncodedParameters":"System.Security.Cryptography.AsnEncodedData"},"RawData":[48,130,5,180,48,130,4,156,160,3,2,1,2,2,17,0,161,82,180,127,161,19,240,237,0,0,0,0,85,101,76,142,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,48,129,200,49,11,48,9,6,3,85,4,6,19,2,85,83,49,22,48,20,6,3,85,4,10,19,13,69,110,116,114,117,115,116,44,32,73,110,99,46,49,40,48,38,6,3,85,4,11,19,31,83,101,101,32,119,119,119,46,101,110,116,114,117,115,116,46,110,101,116,47,108,101,103,97,108,45,116,101,114,109,115,49,57,48,55,6,3,85,4,11,19,48,40,99,41,32,50,48,49,53,32,69,110,116,114,117,115,116,44,32,73,110,99,46,32,45,32,102,111,114,32,97,117,116,104,111,114,105,122,101,100,32,117,115,101,32,111,110,108,121,49,60,48,58,6,3,85,4,3,19,51,69,110,116,114,117,115,116,32,69,120,116,101,110,100,101,100,32,86,97,108,105,100,97,116,105,111,110,32,67,111,100,101,32,83,105,103,110,105,110,103,32,67,65,32,45,32,69,86,67,83,49,48,30,23,13,49,55,48,57,50,55,49,56,49,48,49,51,90,23,13,50,48,48,57,50,55,49,56,51,57,53,54,90,48,129,254,49,11,48,9,6,3,85,4,6,19,2,85,83,49,19,48,17,6,3,85,4,8,19,10,67,97,108,105,102,111,114,110,105,97,49,22,48,20,6,3,85,4,7,19,13,77,111,117,110,116,97,105,110,32,86,105,101,119,49,19,48,17,6,11,43,6,1,4,1,130,55,60,2,1,3,19,2,85,83,49,27,48,25,6,11,43,6,1,4,1,130,55,60,2,1,2,19,10,67,97,108,105,102,111,114,110,105,97,49,44,48,42,6,3,85,4,10,19,35,83,105,103,110,97,108,32,40,81,117,105,101,116,32,82,105,100,100,108,101,32,86,101,110,116,117,114,101,115,44,32,76,76,67,41,49,29,48,27,6,3,85,4,15,19,20,80,114,105,118,97,116,101,32,79,114,103,97,110,105,122,97,116,105,111,110,49,21,48,19,6,3,85,4,5,19,12,50,48,49,50,49,53,55,49,48,48,48,55,49,44,48,42,6,3,85,4,3,19,35,83,105,103,110,97,108,32,40,81,117,105,101,116,32,82,105,100,100,108,101,32,86,101,110,116,117,114,101,115,44,32,76,76,67,41,48,130,1,34,48,13,6,9,42,134,72,134,247,13,1,1,1,5,0,3,130,1,15,0,48,130,1,10,2,130,1,1,0,178,110,85,127,99,3,128,31,93,51,37,26,232,45,137,3,27,161,168,143,188,145,83,29,245,213,219,231,97,231,126,245,2,182,247,83,110,9,92,11,7,118,51,142,207,73,173,2,11,210,176,222,246,38,157,26,255,170,129,198,187,85,193,8,9,225,50,41,150,126,152,25,209,170,252,162,189,201,99,185,171,147,56,234,185,29,140,192,166,160,238,16,232,180,198,39,225,214,164,191,7,107,168,123,210,44,239,163,198,19,188,215,30,209,64,61,232,136,107,91,49,95,118,146,122,201,177,251,124,63,15,90,86,133,37,133,102,220,130,231,164,125,210,27,131,17,145,84,73,74,77,115,212,33,92,110,247,181,59,170,129,41,149,136,42,200,7,218,93,117,232,214,158,198,157,249,167,136,83,98,237,246,209,75,251,34,28,251,201,129,145,228,30,61,10,50,229,113,186,57,13,102,54,236,197,13,202,236,147,144,243,92,2,70,107,171,135,178,188,37,111,46,218,61,25,175,116,166,228,40,130,232,83,133,154,73,28,176,2,41,82,207,238,229,8,236,223,107,95,119,176,198,141,228,92,205,2,3,1,0,1,163,130,1,95,48,130,1,91,48,14,6,3,85,29,15,1,1,255,4,4,3,2,7,128,48,19,6,3,85,29,37,4,12,48,10,6,8,43,6,1,5,5,7,3,3,48,106,6,8,43,6,1,5,5,7,1,1,4,94,48,92,48,35,6,8,43,6,1,5,5,7,48,1,134,23,104,116,116,112,58,47,47,111,99,115,112,46,101,110,116,114,117,115,116,46,110,101,116,48,53,6,8,43,6,1,5,5,7,48,2,134,41,104,116,116,112,58,47,47,97,105,97,46,101,110,116,114,117,115,116,46,110,101,116,47,101,118,99,115,49,45,99,104,97,105,110,50,53,54,46,99,101,114,48,49,6,3,85,29,31,4,42,48,40,48,38,160,36,160,34,134,32,104,116,116,112,58,47,47,99,114,108,46,101,110,116,114,117,115,116,46,110,101,116,47,101,118,99,115,49,46,99,114,108,48,74,6,3,85,29,32,4,67,48,65,48,54,6,10,96,134,72,1,134,250,108,10,1,2,48,40,48,38,6,8,43,6,1,5,5,7,2,1,22,26,104,116,116,112,58,47,47,119,119,119,46,101,110,116,114,117,115,116,46,110,101,116,47,114,112,97,48,7,6,5,103,129,12,1,3,48,31,6,3,85,29,35,4,24,48,22,128,20,42,10,111,50,44,41,32,33,118,106,177,172,140,60,175,147,142,14,107,162,48,29,6,3,85,29,14,4,22,4,20,147,25,186,153,54,106,88,11,85,34,154,110,235,136,182,130,70,149,230,165,48,9,6,3,85,29,19,4,2,48,0,48,13,6,9,42,134,72,134,247,13,1,1,11,5,0,3,130,1,1,0,77,18,66,28,9,200,214,157,110,100,103,208,40,119,87,51,13,234,20,149,59,63,218,77,132,186,63,45,64,8,182,49,16,120,11,100,98,68,201,125,129,166,178,249,197,41,58,116,209,57,48,112,164,9,211,240,151,155,114,6,103,86,0,178,179,101,192,216,126,224,120,100,141,102,140,68,100,170,203,39,94,182,186,59,37,252,41,49,198,160,169,53,97,83,152,136,154,131,147,212,83,60,238,63,195,10,135,25,52,249,144,136,202,8,21,250,169,44,110,155,215,189,137,203,13,105,2,125,48,225,49,151,116,232,93,91,193,142,89,120,24,55,72,189,208,234,206,231,11,12,106,209,154,23,9,36,254,83,36,219,146,14,140,104,240,49,30,114,92,180,112,39,42,197,151,38,123,103,179,236,31,241,43,133,59,86,120,117,242,29,25,205,214,233,21,63,152,43,168,221,205,248,99,4,172,143,249,0,86,16,98,49,188,130,184,203,160,5,233,48,118,5,139,175,41,119,93,139,43,23,102,208,62,4,218,50,135,116,229,251,244,212,125,137,100,68,158,122,90,184,33,121,65,57,28,157],"SerialNumber":"00A152B47FA113F0ED0000000055654C8E","SubjectName":{"Name":"CN=\"Signal (Quiet Riddle Ventures, LLC)\", SERIALNUMBER=201215710007, OID.2.5.4.15=Private Organization, O=\"Signal (Quiet Riddle Ventures, LLC)\", OID.1.3.6.1.4.1.311.60.2.1.2=California, OID.1.3.6.1.4.1.311.60.2.1.3=US, L=Mountain View, S=California, C=US","Oid":"System.Security.Cryptography.Oid","RawData":"48 129 254 49 11 48 9 6 3 85 4 6 19 2 85 83 49 19 48 17 6 3 85 4 8 19 10 67 97 108 105 102 111 114 110 105 97 49 22 48 20 6 3 85 4 7 19 13 77 111 117 110 116 97 105 110 32 86 105 101 119 49 19 48 17 6 11 43 6 1 4 1 130 55 60 2 1 3 19 2 85 83 49 27 48 25 6 11 43 6 1 4 1 130 55 60 2 1 2 19 10 67 97 108 105 102 111 114 110 105 97 49 44 48 42 6 3 85 4 10 19 35 83 105 103 110 97 108 32 40 81 117 105 101 116 32 82 105 100 100 108 101 32 86 101 110 116 117 114 101 115 44 32 76 76 67 41 49 29 48 27 6 3 85 4 15 19 20 80 114 105 118 97 116 101 32 79 114 103 97 110 105 122 97 116 105 111 110 49 21 48 19 6 3 85 4 5 19 12 50 48 49 50 49 53 55 49 48 48 48 55 49 44 48 42 6 3 85 4 3 19 35 83 105 103 110 97 108 32 40 81 117 105 101 116 32 82 105 100 100 108 101 32 86 101 110 116 117 114 101 115 44 32 76 76 67 41"},"SignatureAlgorithm":{"Value":"1.2.840.113549.1.1.11","FriendlyName":"sha256RSA"},"Thumbprint":"77B2AA4421E5F377454B8B91E573746592D1543D","Version":3,"Handle":2683981123232,"Issuer":"CN=Entrust Extended Validation Code Signing CA - EVCS1, OU=\"(c) 2015 Entrust, Inc. - for authorized use only\", OU=See www.entrust.net/legal-terms, O=\"Entrust, Inc.\", C=US","Subject":"CN=\"Signal (Quiet Riddle Ventures, LLC)\", SERIALNUMBER=201215710007, OID.2.5.4.15=Private Organization, O=\"Signal (Quiet Riddle Ventures, LLC)\", OID.1.3.6.1.4.1.311.60.2.1.2=California, OID.1.3.6.1.4.1.311.60.2.1.3=US, L=Mountain View, S=California, C=US"},"TimeStamperCertificate":{"Archived":false,"Extensions":["System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension","System.Security.Cryptography.X509Certificates.X509EnhancedKeyUsageExtension","System.Security.Cryptography.X509Certificates.X509KeyUsageExtension","System.Security.Cryptography.X509Certificates.X509Extension","System.Security.Cryptography.X509Certificates.X509Extension","System.Security.Cryptography.X509Certificates.X509Extension","System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension","System.Security.Cryptography.X509Certificates.X509Extension"],"FriendlyName":"","IssuerName":{"Name":"CN=Symantec Time Stamping Services CA - G2, O=Symantec Corporation, C=US","Oid":"System.Security.Cryptography.Oid","RawData":"48 94 49 11 48 9 6 3 85 4 6 19 2 85 83 49 29 48 27 6 3 85 4 10 19 20 83 121 109 97 110 116 101 99 32 67 111 114 112 111 114 97 116 105 111 110 49 48 48 46 6 3 85 4 3 19 39 83 121 109 97 110 116 101 99 32 84 105 109 101 32 83 116 97 109 112 105 110 103 32 83 101 114 118 105 99 101 115 32 67 65 32 45 32 71 50"},"NotAfter":"\/Date(1609286399000)\/","NotBefore":"\/Date(1350518400000)\/","HasPrivateKey":false,"PrivateKey":null,"PublicKey":{"Key":"System.Security.Cryptography.RSACryptoServiceProvider","Oid":"System.Security.Cryptography.Oid","EncodedKeyValue":"System.Security.Cryptography.AsnEncodedData","EncodedParameters":"System.Security.Cryptography.AsnEncodedData"},"RawData":[48,130,4,163,48,130,3,139,160,3,2,1,2,2,16,14,207,244,56,200,254,191,53,110,4,216,106,152,27,26,80,48,13,6,9,42,134,72,134,247,13,1,1,5,5,0,48,94,49,11,48,9,6,3,85,4,6,19,2,85,83,49,29,48,27,6,3,85,4,10,19,20,83,121,109,97,110,116,101,99,32,67,111,114,112,111,114,97,116,105,111,110,49,48,48,46,6,3,85,4,3,19,39,83,121,109,97,110,116,101,99,32,84,105,109,101,32,83,116,97,109,112,105,110,103,32,83,101,114,118,105,99,101,115,32,67,65,32,45,32,71,50,48,30,23,13,49,50,49,48,49,56,48,48,48,48,48,48,90,23,13,50,48,49,50,50,57,50,51,53,57,53,57,90,48,98,49,11,48,9,6,3,85,4,6,19,2,85,83,49,29,48,27,6,3,85,4,10,19,20,83,121,109,97,110,116,101,99,32,67,111,114,112,111,114,97,116,105,111,110,49,52,48,50,6,3,85,4,3,19,43,83,121,109,97,110,116,101,99,32,84,105,109,101,32,83,116,97,109,112,105,110,103,32,83,101,114,118,105,99,101,115,32,83,105,103,110,101,114,32,45,32,71,52,48,130,1,34,48,13,6,9,42,134,72,134,247,13,1,1,1,5,0,3,130,1,15,0,48,130,1,10,2,130,1,1,0,162,99,11,57,68,184,187,35,167,68,73,187,14,255,161,240,97,10,83,147,176,152,219,173,44,15,74,197,110,255,134,60,83,85,15,21,206,4,63,43,253,169,150,150,217,190,97,121,11,91,201,76,134,118,229,224,67,75,34,149,238,194,43,67,193,159,216,104,180,142,64,79,238,133,56,185,17,197,35,242,100,88,240,21,50,111,78,87,161,174,136,164,2,215,42,30,205,75,225,221,99,213,23,137,50,91,176,94,153,90,168,157,40,80,14,23,238,150,219,97,59,69,81,29,207,18,86,11,146,71,252,171,174,246,102,61,71,172,112,114,231,146,231,95,205,16,185,196,131,100,148,25,189,37,128,225,232,210,34,165,208,186,2,122,161,119,147,91,101,195,238,23,116,188,65,134,42,220,8,76,140,146,140,145,45,158,119,68,31,104,214,168,116,119,219,14,91,50,139,86,139,51,189,217,99,200,73,157,58,197,197,234,51,11,210,241,163,27,244,139,190,217,179,87,139,59,222,4,167,122,34,178,36,174,46,199,112,197,190,78,131,38,8,251,11,189,169,79,153,8,225,16,40,114,170,205,2,3,1,0,1,163,130,1,87,48,130,1,83,48,12,6,3,85,29,19,1,1,255,4,2,48,0,48,22,6,3,85,29,37,1,1,255,4,12,48,10,6,8,43,6,1,5,5,7,3,8,48,14,6,3,85,29,15,1,1,255,4,4,3,2,7,128,48,115,6,8,43,6,1,5,5,7,1,1,4,103,48,101,48,42,6,8,43,6,1,5,5,7,48,1,134,30,104,116,116,112,58,47,47,116,115,45,111,99,115,112,46,119,115,46,115,121,109,97,110,116,101,99,46,99,111,109,48,55,6,8,43,6,1,5,5,7,48,2,134,43,104,116,116,112,58,47,47,116,115,45,97,105,97,46,119,115,46,115,121,109,97,110,116,101,99,46,99,111,109,47,116,115,115,45,99,97,45,103,50,46,99,101,114,48,60,6,3,85,29,31,4,53,48,51,48,49,160,47,160,45,134,43,104,116,116,112,58,47,47,116,115,45,99,114,108,46,119,115,46,115,121,109,97,110,116,101,99,46,99,111,109,47,116,115,115,45,99,97,45,103,50,46,99,114,108,48,40,6,3,85,29,17,4,33,48,31,164,29,48,27,49,25,48,23,6,3,85,4,3,19,16,84,105,109,101,83,116,97,109,112,45,50,48,52,56,45,50,48,29,6,3,85,29,14,4,22,4,20,70,198,105,163,14,74,20,30,213,76,218,82,99,23,63,94,54,188,13,230,48,31,6,3,85,29,35,4,24,48,22,128,20,95,154,245,110,92,204,204,116,154,212,221,125,239,63,219,236,76,128,46,221,48,13,6,9,42,134,72,134,247,13,1,1,5,5,0,3,130,1,1,0,120,59,180,145,42,0,76,240,143,98,48,55,120,163,132,39,7,111,24,178,222,37,220,160,212,148,3,170,134,78,37,159,154,64,3,28,221,206,227,121,203,33,104,6,218,182,50,180,109,191,244,44,38,99,51,228,73,100,109,13,230,195,103,14,247,5,164,53,108,124,137,22,198,233,178,223,178,233,221,32,198,113,15,205,149,116,220,182,92,222,189,55,31,67,120,230,120,181,205,40,4,32,163,170,241,75,196,136,41,145,14,128,209,17,252,221,92,118,110,79,94,14,69,70,65,110,13,176,234,56,154,177,58,218,9,113,16,252,28,121,180,128,123,172,105,244,253,156,182,12,22,43,241,127,91,9,61,155,91,226,22,202,19,129,109,0,46,56,13,168,41,143,44,225,178,244,90,169,1,175,21,156,44,47,73,27,219,34,187,195,254,120,148,81,195,134,177,130,136,93,240,61,180,81,161,121,51,43,46,123,185,220,32,9,19,113,235,106,25,91,207,232,165,48,87,44,137,73,63,185,207,127,201,191,62,34,104,99,83,154,189,105,116,172,197,29,60,127,146,224,195,188,28,216,4,117],"SerialNumber":"0ECFF438C8FEBF356E04D86A981B1A50","SubjectName":{"Name":"CN=Symantec Time Stamping Services Signer - G4, O=Symantec Corporation, C=US","Oid":"System.Security.Cryptography.Oid","RawData":"48 98 49 11 48 9 6 3 85 4 6 19 2 85 83 49 29 48 27 6 3 85 4 10 19 20 83 121 109 97 110 116 101 99 32 67 111 114 112 111 114 97 116 105 111 110 49 52 48 50 6 3 85 4 3 19 43 83 121 109 97 110 116 101 99 32 84 105 109 101 32 83 116 97 109 112 105 110 103 32 83 101 114 118 105 99 101 115 32 83 105 103 110 101 114 32 45 32 71 52"},"SignatureAlgorithm":{"Value":"1.2.840.113549.1.1.5","FriendlyName":"sha1RSA"},"Thumbprint":"65439929B67973EB192D6FF243E6767ADF0834E4","Version":3,"Handle":2683981120544,"Issuer":"CN=Symantec Time Stamping Services CA - G2, O=Symantec Corporation, C=US","Subject":"CN=Symantec Time Stamping Services Signer - G4, O=Symantec Corporation, C=US"},"Status":0,"StatusMessage":"Signature verified.","Path":"C:\\Users\\c0fe\\Downloads\\signal-desktop-win-1.20.0.exe","SignatureType":1,"IsOSBinary":false}
scottnonnenberg-signal commented 5 years ago

It does seem to be a quotation thing. Very interesting. Also might just be a breaking change in a new version of powershell causing this, as well.

dbolton commented 5 years ago

I got the same error today as reported above. Signal crashed, but when I reopened it it opened fine.

Here's what I get when I run the command in powershell:

powershell.exe -NoProfile -NonInteractive -InputFormat None -Command Get-AuthenticodeSignature 'C:\Users\dbolton\AppData\Roaming\Signal\temp-installer-1.20.0.exe' | ConvertTo-Json -Compress
["Get-AuthenticodeSignature : File C:\\Users\\dbolton\\AppData\\Roaming\\Signal\\temp-installer-1.20.0.exe was not found.","At line:1 char:1","+ Get-AuthenticodeSignature C:\\Users\\dbolton\\AppData\\Roaming\\Signal\\tem ...","+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~","    + CategoryInfo          : ObjectNotFound: (:) [Get-AuthenticodeSignature], FileNotFoundException","    + FullyQualifiedErrorId : SignatureCommandsBaseFileNotFound,Microsoft.PowerShell.Commands.GetAuthenticodeSignature ","   Command"," "]

Here's the contents of that folder (the file mentioned is not there):

Name
----
attachments.noindex
blob_storage
Cache
databases
GPUCache
IndexedDB
Local Storage
logs
sql
webrtc_event_logs
.updaterId
config.json
ephemeral.json
installer-1.14.4.exe
installer-1.15.0.exe
installer-1.15.4.exe
installer-1.15.5.exe
installer-1.16.1.exe
installer-1.16.2.exe
installer-1.20.0.exe
installer.exe
lockfile
Preferences
QuotaManager
QuotaManager-journal
temp-installer-1.19.0.exe
scottnonnenberg-signal commented 5 years ago

@dbolton Though I suppose it could be a problem with the target file not existing on disk when that command is run. Too bad the error message from running that command isn't printed to the console.

c0fe commented 5 years ago

This happened again:

Unhandled Promise Rejection
Error: Command failed: powershell.exe -NoProfile -NonInteractive -InputFormat None -Command Get-AuthenticodeSignature 'C:\Users\User\AppData\Roaming\Signal\temp-installer-1.21.0.exe' | ConvertTo-Json -Compress

    at ChildProcess.exithandler (child_process.js:303:12)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:961:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
From previous event:
    at verifySignature (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\windowsExecutableCodeSignatureVerifier.ts:11:3)
    at C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:93:18
From previous event:
    at NsisUpdater.verifySignature (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\NsisUpdater.js:209:7)
    at Object.<anonymous> (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:41:56)
    at Generator.next (<anonymous>)
From previous event:
    at Object.task (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\NsisUpdater.js:177:25)
    at C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\BaseUpdater.ts:83:25
    at Generator.throw (<anonymous>)
From previous event:
    at NsisUpdater.executeDownload (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\BaseUpdater.js:164:7)
    at C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:31:23
From previous event:
    at NsisUpdater.doDownloadUpdate (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\NsisUpdater.js:181:7)
    at C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:361:25
    at Generator.next (<anonymous>)
From previous event:
    at NsisUpdater.downloadUpdate (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\AppUpdater.js:539:7)
    at C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:337:49
From previous event:
    at NsisUpdater.doCheckForUpdates (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\AppUpdater.js:502:7)
    at C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:279:25
    at Generator.next (<anonymous>)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
From previous event:
    at NsisUpdater._checkForUpdates (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\out\AppUpdater.js:433:7)
    at NsisUpdater.checkForUpdates (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:217:35)
    at Timeout.checkForUpdates [as _onTimeout] (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\app\auto_update.js:22:15)
    at ontimeout (timers.js:427:11)
    at tryOnTimeout (timers.js:289:5)
    at listOnTimeout (timers.js:252:5)
    at Timer.processTimers (timers.js:212:10)

Signal Version: 1.21.0

Debug Log: https://debuglogs.org/bb8bb77d89bb9762ae9150d8bdd73d7abce7ade9fa576c8d62f7f49a494e9416

scottnonnenberg-signal commented 5 years ago

So is the theory that the file is actually not there sometimes, and that's why we run into errors?

RiseT commented 5 years ago

@scottnonnenberg-signal So do you consider it unlikely that the missing quotation marks as mentioned above could be the culprit?

scottnonnenberg-signal commented 5 years ago

Looks like the latest version of the powershell exec code does manage all the various arguments better: https://github.com/electron-userland/electron-builder/blob/a0026a7422977b449709f8a662d9dd30600a31b1/packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts#L13

As of v1.21.0 we're on a version of electron-builder with those changes, so we'll see what happens when it downloads and tries to run powershell on the next update!

c0fe commented 5 years ago

@scottnonnenberg i haven't seen this reoccur. Maybe close the issue?

c0fe commented 5 years ago

@scottnonnenberg I spoke too soon. The issue has occurred again. Here are the details:

Signal Version: 1.22.0 OS: Windows 10 Professional 1809 Debug Log: https://debuglogs.org/73573b97a1bb582fdd6952fd8a6c19b654384f16e055b4b9cf03017c75914a72

Error:

Unhandled Promise Rejection
Error: EPERM: operation not permitted, open 'C:\Users\User\AppData\Local\signal-desktop-updater\pending\temp-signal-desktop-win-1.22.0.exe'
    at ElectronHttpExecutor.download (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\electronHttpExecutor.ts:23:73)
    at Object.<anonymous> (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:35:35)
From previous event:
    at Object.task (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:31:11)
    at C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:610:25
From previous event:
    at NsisUpdater.executeDownload (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:545:68)
    at NsisUpdater.executeDownload (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\BaseUpdater.ts:27:18)
    at NsisUpdater.doDownloadUpdate (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:27:17)
    at NsisUpdater.downloadUpdate (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:420:19)
    at C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:383:49
    at Generator.next (<anonymous>)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
From previous event:
    at NsisUpdater.doCheckForUpdates (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:360:34)
    at NsisUpdater.checkForUpdates (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:220:35)
    at Timeout.checkForUpdates [as _onTimeout] (C:\Users\User\AppData\Local\Programs\signal-desktop\resources\app.asar\app\auto_update.js:23:23)
    at ontimeout (timers.js:427:11)
    at tryOnTimeout (timers.js:289:5)
    at listOnTimeout (timers.js:252:5)
    at Timer.processTimers (timers.js:212:10)
scottnonnenberg-signal commented 5 years ago

@c0fe That looks to be a different issue, which we're tracking here: https://github.com/signalapp/Signal-Desktop/issues/3106

c0fe commented 5 years ago

I got this as a rejected promise from another computer: https://debuglogs.org/c46a6ae95b2a185d06d3d4a366a32d43537e8189fd390fb02e2046aa0e215101

scottnonnenberg-signal commented 5 years ago

@c0fe Which rejected promise, exactly? Logs are big; we need a little help to know where to look in the log.

c0fe commented 5 years ago

@scottnonnenberg not sure, I forgot to grab the error message. will try again.

beyondkmp commented 1 year ago

We can replace the PowerShell with a native verify signature module to resolve all powershell problems.

https://github.com/electron-userland/electron-builder/pull/7337