简体   繁体   中英

C# certificate for desktop program

I do not know what steps I have to take in order to be able to create a desktop C # program using Visual Studio in the .NET Framework, which will not show the inscription during installation that it will come from an untrusted source.

Of course I tried to sign it with my own key, but it has no right to work for anyone other than my machine. I found a lot of articles on this subject, but most of them concern the ways that a corporation can do (setting up a server, using company-certified certificates, root certificate, certificate for SSL etc.). Microsoft's documentation does not in any way lead to how to create a certificate for an independent project. If I understand correctly, I have to buy a certificate somewhere in order to be able to use it to sign my application.

What steps should I take to prevent my program from prompting? Is there any free form of certification? Where to get the certificate?

The question may not be well-worded for this page, but in a way it's about programming, and after a week of looking for a working scheme, I don't know what to do and I don't know where to look for help.

What you're interested in is a code signing certificate. There are a number of providers but I use Digicert . Once you have the certificate, it's easy to sign your application (you can also sign your installer) by doing something like:

signtool.exe sign /tr http://timestamp.digicert.com /td sha256 /fd sha256 /n <SubjectName> Application.exe

You will receive your SubjectName with your certificate.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM