Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signing a C++ executable in Visual Studio

Is there a way to automatically sign a C++ executable generated by Visual Studio 2008? I couldn't find anything similar to the "signing" tab in Properties that exists for managed apps.

Any ideas? I want to automatically sign my executable when it's built (using msbuild command line).

like image 271
psychotik Avatar asked Jun 30 '09 21:06

psychotik


People also ask

How do I create an executable in Visual Studio?

To build your program and create teh executable file choose Build My Project.exe from the Build menu - "My Project" represents teh name you chose for your project and the extension ".exe" is used to designate that the file being created will be an executable file.

What is signing in Visual Studio?

You sign an application or component by using the Signing tab of the project properties window (right-click the project node in Solution Explorer and select Properties). Select the Signing tab, then select the Sign the assembly check box. Specify a key file.

What is DLL signing?

A digital signature is used to help authenticate the identity of the creator of digital information — such as documents, e-mail messages etc. — by using the cryptographic algorithms. When a . dll and/or .exe file is digitally signed by a signer, you can confirm the same from the said file's properties.


1 Answers

Use signtool (http://msdn.microsoft.com/en-us/library/8s9b9yaz%28VS.80%29.aspx) in a post-build step

like image 114
Ana Betts Avatar answered Sep 20 '22 00:09

Ana Betts