如何避免对 Windows 的已签名电子应用程序发出警告?

How to avoid warning for signed electron app for Windows?

我设计了一个电子应用程序。我用 www.digicert.com 的证书在 CI 上签名。但是当用户尝试安装它时,他们会收到警告 “Windows 保护了您的 PC。Windows Defender SmartScreen 阻止了无法识别的应用程序启动。运行 此应用程序可能会使您的 PC 面临风险。” (参见 dialog with the error message)。

我还尝试在不签名的情况下创建应用程序,签名和未签名应用程序之间的唯一区别是警告中的公司名称(有或没有名称)。

如何解决此问题以防止向用户显示此警告?也许使用其他证书?

你能给我一个关于如何为 Windows 签署电子应用程序的方法吗?

https://www.digicert.com/ms-smartscreen-application-reputation/

However, a warning appears if the software has been signed with a regular code signing certificate where the author or publisher has not yet established a reputation of trust. (Only Authenticode Certificates issued by a CA that is a member of the Windows Root Certificate Program can establish reputation.) As the software or its publisher gains a better reputation, the likelihood of a warning diminishes. Reputation for unsigned software is based on fingerprints while reputation based on signed software is based on the associated code signing certificate and the reputation of the CA that issued the code signing certificate.

作为应用程序,这是您无法控制的事情,因为 smartscreen 将根据 reputation 进行评估。