electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.58k stars 1.73k forks source link

Error: SignerSign() failed. (-2146893807/0x80090011) #6698

Open cokemania2 opened 2 years ago

cokemania2 commented 2 years ago

cross-env ELECTRON_IS_DEV=0 && rimraf dist && electron-builder --ia32 --win


  • electron-builder  version=21.2.0 os=10.0.19043
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=dist\builder-effective-config.yaml
  • rebuilding native dependencies  dependencies=node-mac-notifier@1.2.0 platform=win32 arch=ia32
  • packaging       platform=win32 arch=ia32 electron=9.3.5 appOutDir=dist\win-ia32-unpacked
  • signing         file=dist\win-ia32-unpacked\🔒.exe subject=CN=🔒, O=🔒, STREET="🔒", L=🔒,S=Seoul, C=KR, OID.1.3.6.1.4.1.311.60.2.1.3=KR, SERIALNUMBER=🔒, OID.2.5.4.15=Private Organization thumbprint=🔒 store=My user=current user
  ⨯ Exit code: 1. Command failed: C:\Users\lang0\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.5.0\windows-10\x64\signtool.exe sign /t http://timestamp.digicert.com/ /sha1 🔒 /s My /d 🔒 /debug C:\Users\PATH\dist\win-ia32-unpacked\🔒.exe
SignTool Error: An unexpected internal error has occurred.

It works well on a window computer built in a virtual environment, but it doesn't work well to try the same conditions on a local window. For your information, the certificate is contained in usb.

This is the last code before an error occurs.


After EKU filter, 5 certs were left.
After expiry filter, 5 certs were left.
After Hash filter, 1 certs were left.
After Private Key filter, 1 certs were left.
The following certificate was selected:
    Issued to: 🔒    
    Issued by: GlobalSign Extended Validation CodeSigning CA - SHA256 - G3
    Expires:   Fri Jun 03 21:08:12 2022
    SHA1 hash: 🔒

Done Adding Additional Store
SignTool Error: An unexpected internal error has occurred.
Error information: "Error: SignerSign() failed." (-2146893807/0x80090011)

x-fox commented 2 years ago

Same issue here, is there any help?

cokemania2 commented 2 years ago

Same issue here, is there any help?

In my case, I solved it by re-creating the certificate with a new one and reinstalling the signing tool.

thoernle commented 3 months ago

For the people who find this. You most likely need to set the signing algorithm using: signingHashAlgorithms = ['sha1', 'sha256']