windows - How to avoid warning for signed electron app for Windows?
问题描述
I have designed an electron app. I sign it on CI with certificate from www.digicert.com. But when users try to install it, they get a warning "Windows protected your PC. Windows Defender SmartScreen prevented an unrecognized app from starting. Running this app might put your PC at risk." (see the dialog with the error message).
I also tried to to create the app without signing it and the only difference between signed and unsigned apps is the name of the company in the warning (with or without the name).
How can I fix this behavior to prevent this warning from being shown to the user? Maybe using another certificate?
Could you, please give me a recipe on how to sign electron apps for Windows?
解决方案
https://www.digicert.com/ms-smartscreen-application-reputation/
但是,如果软件已使用常规代码签名证书进行签名,而作者或发布者尚未建立信任声誉,则会出现警告。(只有作为 Windows 根证书计划成员的 CA 颁发的 Authenticode 证书才能建立声誉。)随着软件或其发布者获得更好的声誉,警告的可能性会降低。未签名软件的信誉基于指纹,而基于签名软件的信誉基于关联的代码签名证书和颁发代码签名证书的 CA 的信誉。
这是您作为应用程序无法控制的事情,因为 smartscreen 将基于reputation
.
推荐阅读
- selenium - 通过 Selenium 脚本单击网页上的链接元素时出错
- python - 使用 :-1 和 None 切片 - 每个语句的含义是什么?
- c++ - 尝试反转链表时显示分段错误
- c# - 脚手架现有数据库时 ASP.NET Core 3.0 错误“无法转换类型的对象”
- java - Java Client-Server 应用程序抛出“java.net.SocketException: Connection reset”异常
- php - header("位置:".$_SERVER['HTTP_REFERER']); 移动到服务器时停止工作
- python - Matplotlib:更新 quiver() 中的位置和速度
- javascript - 获取请求响应不可访问
- cytoscape.js - cytoscape js多行标签-第二行的不同css规则
- linux-kernel - linux源码中带有方法的结构体结构