Is it useless to sign my Windows application with a self signed certificate?

你说的曾经没有我的故事 提交于 2019-11-28 06:41:26

问题


I have coded an NWjs Windows application (Chromium application) and using Inno Setup, I have signed it using a self-signed certificate. However, I get the "Windows protected your PC" message when trying to install it from the web. I wonder now if signing my application with this self-signed certificate is useless because I get the same result when I don't sign the application and package it as it is.

When I click "more info" it states that the publisher is unknown in both cases when I sign the application with a self-signed certificate and without a self-signed certificate.

I wonder if after sometimes, the data (like the CN of the subject) of the certificate helps to get some reputation when the application is distributed on the internet. I wonder if a self signed certificate help to get rid of the "Windows protected your PC" message after sometimes.


回答1:


Self-signed certificates are useful only, if can make them trusted on the target machine, by manually adding them to Windows certificate store.

If you want your application to be installed on machines that you do not control, self-signed certificates are useless.




回答2:


I wonder if a self signed certificate help to get rid of the "Windows protected your PC" message after sometimes.

No. Since everyone can generate a certificate himself, Windows cannot trust all of them and therefore cannot remove the message.

However, it can still be a good idea to sign an executable with your own certificate, if you publish the public key and provide it for people to check whether or not the executable was indeed provided by you. It will be useful for people with some IT or security knowledge.



来源:https://stackoverflow.com/questions/54303513/is-it-useless-to-sign-my-windows-application-with-a-self-signed-certificate

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