如何使用电子构建器对EV证书进行编码?
我正在使用电子构建器。
我可以看到他们有关EV代码签名的文档提及。
https://wwwww.electron.build/code-signing.html-windows.html#windows
但它没有详细说明如何。
需要在电子构建器配置中提供win。
在文档中,它说如果您使用的是EV证书,则 csc_key_password
env?他们不需要吗?
使用EV CERT,该证书绑定到USB加密狗,我无法将其导出为.pfx
或设置密码。
那我该怎么办?
I'm using electron-builder.
I can see their documentation mention about EV Code signing.
https://www.electron.build/code-signing.html#windows
But it doesn't say in detail HOW.
In docs, it says If you are using an EV Certificate, you need to provide win.certificateSubjectName in your electron-builder configuration.
But what about the CSC_LINK
and CSC_KEY_PASSWORD
env? Are they not needed?
Using EV cert, the certificate is bound to USB dongle and I can't export it as .pfx
or set password.
So what should I do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在回答自己。
您可以省略
csc_link
&csc_key_password
由于EV CERT不给您.pfx
文件和密码。相反,您在
电子构建器
的配置中设置了centeraTesUbjectName
。然后,它将自动找到带有该主题名称的计算机中安装的证书。
构建时,您的证书分销商使用的授权客户端将弹出以询问令牌密码。
当然,您需要插入USB加密狗。
I'm answering myself.
You can omit
CSC_LINK
&CSC_KEY_PASSWORD
since EV cert doesn't give you.pfx
file and password.Instead, you set
certificateSubjectName
inelectron-builder
's configuration.Then it will automatically find certificate installed in your machine with that subject name.
When building, an authorization client used by your cert distributer will pop up to ask token password.
Of course, you need to have USB dongle plugged in.