electron-windows-store icon indicating copy to clipboard operation
electron-windows-store copied to clipboard

Signing with a certificate from the Cert Store (rather than a pfx file)

Open toschlog opened this issue 3 years ago • 1 comments

I appears that it's not possible to sign the appx package using a cert from your local cert store or from a USB token.

I think this would be easy to fix. I suggest adding a config param called devCertSha1. If this is set, then instead of doing

signtool sign -f <program.devCert> -fd SHA256 -v <appxFile>

the app would do

signtool sign -sha1 <program.devCertSha1> -fd SHA256 -v <appxFile>

If this sounds reasonable, I'll make the changes, test it, and put in a pull reqeust.

toschlog avatar Feb 02 '22 19:02 toschlog

Opening up the options for custom signtool.exe and custom parameters, or sign with hook functions, just like how @electron/windows-sign does would also be great. I would like to sign using azure key vault.

rickymohk avatar Dec 22 '23 02:12 rickymohk