如何使用电子构建器对EV证书进行编码?

发布于 2025-01-29 09:18:51 字数 433 浏览 5 评论 0原文

我正在使用电子构建器。

我可以看到他们有关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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

叶落知秋 2025-02-05 09:18:51

我在回答自己。

您可以省略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 in electron-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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文