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.68k stars 1.74k forks source link

SignTool Error: An unexpected internal error has occurred. Error: Store::ImportCertObject() failed. #3160

Closed pumano closed 5 years ago

pumano commented 6 years ago
  • packaging       platform=win32 arch=ia32 electron=2.0.3 appOutDir=dist\win-ia32-unpacked
  • signing         file=dist\win-ia32-unpacked\My App.exe certificateFile=./cert.pfx
  • building        target=nsis file=dist\My App Setup 6.5.0.exe archs=ia32 oneClick=false
  • signing         file=dist\win-ia32-unpacked\resources\elevate.exe certificateFile=./cert.pfx
Error: Exit code: 1. Command failed: C:\Users\myuser\AppData\Local\electron-builder\cache\winCodeSign\winCodeSign-2.0.0\windows-10\x64\signtool.exe sign /tr http://timestamp.comodoca.com/rfc3161 /f ./cert.pfx /fd sha256 /td sha256 /d My App /as /p 6c5b2e31922010079bda9ca27de9da622c53cd6fe9d8974354af36667f033643 (sha256 hash) /debug C:\Users\myuser\runner\builds\e16c7471\0\developers\myapp\dist\win-ia32-unpacked\resources\elevate.exe
SignTool Error: An unexpected internal error has occurred.

Error information: "Error: Store::ImportCertObject() failed." (-2146893792/0x80090020)

SignTool Error: An unexpected internal error has occurred.

    at C:\Users\myuser\runner\builds\e16c7471\0\developers\myapp\node_modules\electron-builder\node_modules\builder-util\src\util.ts:125:16
    at ChildProcess.exithandler (child_process.js:282:5)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
From previous event:
    at doSign (C:\Users\myuser\runner\builds\e16c7471\0\developers\myapp\node_modules\electron-builder\node_modules\electron-builder-lib\out\windowsCodeSign.js:160:18)
    at defaultExecutor (C:\Users\myuser\runner\builds\e16c7471\0\developers\myapp\node_modules\electron-builder\node_modules\electron-builder-lib\src\windowsCodeSign.ts:61:12)
    at C:\Users\myuser\runner\builds\e16c7471\0\developers\myapp\node_modules\electron-builder\node_modules\electron-builder-lib\src\windowsCodeSign.ts:68:11
    at Generator.next (<anonymous>)
    at runCallback (timers.js:794:20)
    at tryOnImmediate (timers.js:752:5)
    at processImmediate [as _immediateCallback] (timers.js:729:5)
From previous event:
    at sign (C:\Users\myuser\runner\builds\e16c7471\0\developers\myapp\node_modules\electron-builder\node_modules\electron-builder-lib\out\windowsCodeSign.js:268:17)
    at C:\Users\myuser\runner\builds\e16c7471\0\developers\myapp\node_modules\electron-builder\node_modules\electron-builder-lib\src\winPackager.ts:256:15
    at Generator.next (<anonymous>)
From previous event:
    at WinPackager.doSign (C:\Users\myuser\runner\builds\e16c7471\0\developers\myapp\node_modules\electron-builder\node_modules\electron-builder-lib\src\winPackager.ts:253:51)
    at C:\Users\myuser\runner\builds\e16c7471\0\developers\myapp\node_modules\electron-builder\node_modules\electron-builder-lib\src\winPackager.ts:244:16
    at Generator.next (<anonymous>)
    at runCallback (timers.js:794:20)
    at tryOnImmediate (timers.js:752:5)
    at processImmediate [as _immediateCallback] (timers.js:729:5)
From previous event:
    at WinPackager.sign (C:\Users\myuser\runner\builds\e16c7471\0\developers\myapp\node_modules\electron-builder\node_modules\electron-builder-lib\src\winPackager.ts:204:53)
    at promise.then (C:\Users\myuser\runner\builds\e16c7471\0\developers\myapp\node_modules\electron-builder\node_modules\electron-builder-lib\src\targets\nsis\nsisUtil.ts:86:53)
    at <anonymous>
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! myapp@6.5.0 build-app: `webpack && build --win --ia32 --publish=never`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the myapp@6.5.0 build-app script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\myuser\AppData\Roaming\npm-cache\_logs\2018-07-19T07_38_10_832Z-debug.log
ERROR: Job failed: exit status 1
stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.