Get rid of “Publisher Unverified” warnings in Windows for executables

自作多情 提交于 2020-01-10 20:10:40

问题


I have made an application for Windows & everytime I run the application by opening the executable file I get the "Publisher Unverified" warning in Windows. It is fine if I was the only audience for this app but thats not the case. Is there any way to program my app such that this message does not show up for the users.


回答1:


The only way to do this is to obtain and use a code signing certificate from a trusted source. Microsoft calls this Authenticode.

Unfortunately for the little guy, these cost. Verisign sells theirs for about four hundie a year.

Here are some starting points you should read about Authenticode:

http://msdn.microsoft.com/en-us/library/ms537359(VS.85).aspx
http://technet.microsoft.com/en-us/library/cc750035.aspx
http://msdn.microsoft.com/en-us/library/aa379872(VS.85).aspx

Some certificate dealers:

http://www.verisign.com
http://www.thawte.com
http://www.globalsign.net
http://www.geotrust.com




回答2:


For a cheaper code signing certificate, you can use Comodo. There is a reseller called KSoftware which sells their certificates for $99/yr:

http://www.ksoftware.net/code_signing.html

I used them a few years ago and had no problems.

You can then use SignTool from the .net SDK to sign your EXE files. There is a tutorial here:

http://www.tech-pro.net/code-signing-for-developers.html




回答3:


I think there is a way to resolve this. We need to add digital signature to the executables. The way to add digital signatures is very nicely outlined at,

  • http://blog.didierstevens.com/2008/12/30/howto-make-your-own-cert-with-openssl/
  • http://blog.didierstevens.com/2008/12/31/howto-add-a-digital-signature-to-executables/

Basically we will use OpenSSL to create our own digital signatures and then use the SignTool application by Microsoft to add it to our executable.



来源:https://stackoverflow.com/questions/1427768/get-rid-of-publisher-unverified-warnings-in-windows-for-executables

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!