Electron-builder: EV Code Signing Certificate: doesn't find certificate

Created on 11 Oct 2017  Â·  2Comments  Â·  Source: electron-userland/electron-builder

  • eletron-builder: 19.36.0
  • powershell: 1.0
  • certificate: EV Code Signing Certificate
  • os: Windows 7

Hi everyone,

Since version 19.33.0, the electron's build doesn't find automatically my certificate.

I provide win.certificateSubjectName in my electron-builder configuration as said in the documentation.
And when I try to deploy my app with DEBUG=electron-builder:

electron-builder 19.36.0
2017-10-11T15:29:05.823Z electron-builder Effective config:
appId: com.myApp.My-App-Name
productName: My App Name
directories:
  output: dist_electron/electron-binaries
asar: true
files:
  - index.js
  - dist_electron/webapp-bundle
  - dist_electron/electron-main
  - dist_electron/electron-renderer
  - '!node_modules'
  - package.json
win:
  target: nsis
  icon: src/electron-app/icons/win-icon-app.ico
  certificateSubjectName: My Certificate Name
nsis:
  artifactName: 'My-App-Name-Setup-${version}.${ext}'
  menuCategory: true
  license: LICENSE
  installerIcon: src/electron-app/icons/win_installer_icon.ico
  installerHeader: src/electron-app/images/win-header-install.bmp
extraMetadata:
  name: My-App-Name
  author:
    name: My App Name

Rebuilding native production dependencies for win32:x64
2017-10-11T15:29:10.523Z electron-builder Spawning C:\Program Files\nodejs\node.exe C:\Users\SJA\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js rebuild [email protected]
2017-10-11T15:29:10.523Z electron-builder cwd: D:\Projets\WebApp\aw-platform

> [email protected] install D:\Projets\WebApp\aw-platform\node_modules\uws
> node-gyp rebuild > build_log.txt 2>&1 || exit 0

[email protected] D:\Projets\WebApp\aw-platform\node_modules\uws
2017-10-11T15:29:14.859Z electron-builder node.exe (13500) exited with exit code 0
Packaging for win32 x64 using electron 1.7.9 to dist_electron\electron-binaries\win-unpacked
2017-10-11T15:29:15.313Z electron-builder Spawning D:\Projets\WebApp\aw-platform\node_modules\7zip-bin-win\x64\7za.exe x -bd C:\Users\SJA\AppData\Local\electron\Cache\electron-v1.7.9-win32-x64.zip -aoa -oD:\Projets\WebApp\aw-platform\dist_electron\electron-binaries\win-unpacked

7-Zip (a) 17.01 beta (x64) : Copyright (c) 1999-2017 Igor Pavlov : 2017-08-28

Scanning the drive for archives:
1 file, 53893903 bytes (52 MiB)

Extracting archive: C:\Users\SJA\AppData\Local\electron\Cache\electron-v1.7.9-win32-x64.zip
--
Path = C:\Users\SJA\AppData\Local\electron\Cache\electron-v1.7.9-win32-x64.zip
Type = zip
Physical Size = 53893903

Everything is Ok

Files: 117
Size:       138386650
Compressed: 53893903
2017-10-11T15:29:16.579Z electron-builder 7za.exe (2640) exited with exit code 0
2017-10-11T15:29:19.667Z electron-builder Executing powershell.exe Get-ChildItem -Recurse Cert: -CodeSigningCert | Select-Object -Property Subject,PSParentPath,Thumbprint | ConvertTo-Json -Compress

The build stays blocked undefenitly at this point. It doesn't returns errors.
Electron-builder's versions before 19.33.0 work like a charm.
I don't find any informations in the documentation.
So, what did I miss? What do I have to change in my config with 19.33.0+ version?

Thanks

question

Most helpful comment

os: Windows 7

Please ensure that you use PS 5.1 — you can install latest https://www.microsoft.com/en-us/download/details.aspx?id=54616 (https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-windows-powershell?view=powershell-5.1)

All 2 comments

Please open ps (powershell) and execute Get-ChildItem -Recurse Cert: -CodeSigningCert | Select-Object -Property Subject,PSParentPath,Thumbprint | ConvertTo-Json -Compress

os: Windows 7

Please ensure that you use PS 5.1 — you can install latest https://www.microsoft.com/en-us/download/details.aspx?id=54616 (https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-windows-powershell?view=powershell-5.1)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AidanNichol picture AidanNichol  Â·  3Comments

ccorcos picture ccorcos  Â·  3Comments

noahprince22 picture noahprince22  Â·  3Comments

xingoxu picture xingoxu  Â·  3Comments

jhg picture jhg  Â·  3Comments