electron应用在windows上做公证
JiaoXin2005 4/2/2021 JavaScript
# 步骤
- 购买 ev 证书。会有一个 u 盘电子狗
- 电子狗导出证书,这里只能导出不带私钥的证书,文件格式重命名为 global-sign.pfx (opens new window)。
- 配置 electron-builder。
- 勾选电子狗的单点登录,以免每次都要输入 token 令牌的密码
# electron-builder 配置 (opens new window)
"win": {
"signingHashAlgorithms": [
"sha256",
"sha1"
],
"certificateFile": "global-sign.pfx",
"verifyUpdateCodeSignature": false,
"signDlls": true,
"rfc3161TimeStampServer": "http://time.certum.pl"
},
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11