问题描述
我已经编译了VB6应用程序,并在编译后使用包含以下命令的批处理文件对其进行了数字签名:
I have compiled a VB6 app and I digitally sign it after compilation using a batch file containing this command:
signtool sign /f apt.pfx /p MyPassword d:\upload\service_pack_UK_BETA.exe
如果我右键单击EXE,则可以在属性"文件中看到数字签名.但是,如果人们下载该文件并尝试在Windows 8中运行该文件,则会在SmartScreen中收到来自未知发布者的消息.
If I right-click the EXE I can see the digital signature in the file Properties. However if people download the file and try to run it in Windows 8 they get the message in SmartScreen that it's from an Unknown Publisher.
我已经阅读了诸如此类的文章 http://social.msdn.microsoft.com/Forums/windows/en-US/00813d25-d258-40d8-b03a-c4468959f311/smartscreen显示了一个未知的发布者,尽管签名正确,但是使用了受信任的证书?forum = winformssetup ,但是他们建议的解决方案无法在VB6中实现.
I have read articles such as this one http://social.msdn.microsoft.com/Forums/windows/en-US/00813d25-d258-40d8-b03a-c4468959f311/smartscreen-shows-unknown-publisher-even-though-signed-correctly-using-a-trusted-certificate?forum=winformssetup but the solution they recommend can't be achieved in VB6.
如何签名EXE,以便SmartScreen可以接受它?
How can I sign the EXE so that SmartScreen will accept it?
推荐答案
See http://blogs.msdn.com/b/vsnetsetup/archive/2013/01/09/windows-smartscreen-prevented-an-unrecognized-app-from-running-running-this-app-might-put-your-pc-at-risk.aspx, specifically the last two sentences of the post
Once this is done, the SmartScreen will continue to warn about the application
until the certificate develops a reputation. But it would display a valid
publisher name instead of unknown publisher.
Windows 8中的SmartScreen维护有效和受信任的发布者证书的列表(以及是否经常遇到签名文件).当它遇到新的发布者证书时,即使证书链是良好且受信任的,它也不会被添加到受信任的发布者列表中,除非有足够的点击保证它被微软称为SmartScreen应用程序信誉.
SmartScreen in Windows 8 maintains a list of valid and trusted publisher certificates (as well as whether the signed files are commonly encountered). When it encounters a new publisher certificate, even when the certificate chain is good and trusted, it won't be added to the list of trusted publishers until enough hits warrant it, what Microsoft calls SmartScreen Application Reputation.
来源:
- http://ie.microsoft.com/testdrive/Browser/DownloadReputation/?o = 1
- http://blogs.msdn.com/b/ie/archive/2011/03/22/smartscreen-174-application-reputation-building-reputation.aspx
- http://blogs.msdn.com/b/ie/archive/2012/08/14/microsoft-smartscreen-amp-extended-validation-ev-code-signing-certificates.aspx (提及SmartScreen应用程序信誉)
- http://ie.microsoft.com/testdrive/Browser/DownloadReputation/?o=1
- http://blogs.msdn.com/b/ie/archive/2011/03/22/smartscreen-174-application-reputation-building-reputation.aspx
- http://blogs.msdn.com/b/ie/archive/2012/08/14/microsoft-smartscreen-amp-extended-validation-ev-code-signing-certificates.aspx (mentions SmartScreen Application Reputation)
这篇关于VB6数字签名EXE在Windows 8 SmartScreen中显示为Unknown Publisher的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!