NI Home > Community > NI Discussion Forums
Reply
Member
Gerry
Posts: 2
0 Kudos

How do I create a digital signature for exe files

As windows security improves, more effort is made to alert users of "questionable" software. Such is the case with CVI executables which bear no digital signature and upon invocation bring up the "Open File - Security Warning". While users have the option to run or cancel, a digital signature is the right way to address the issue.
Member
Altzone
Posts: 37
0 Kudos

Re: How do I create a digital signature for exe files

You mean you want to check the integrity of your EXE when you load it up?
Standard way is with a CRC checksum value. Store the value in a file and have your program calculate and compare the checksum.
Every time you recompile the EXE you simply recalculate a new checksum using another program (that uses the same CRC algorithm) and store it in the file.
 
Dave :smileyhappy:
Member
DaveC
Posts: 153
0 Kudos

Re: How do I create a digital signature for exe files

Gerry,
 
You should check out this link on MSDN, which contains a set of functions to create certificates http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesecurity5/html/wce50grfCertifica...
 
If you want to use checksum stuff as Dave suggested to make your own certificate, you can check out the Cryptography functions which are the next item on the MSDN tree to the link I posted.
 
Both of these function sets use the Windows API. 
Active Participant
Travis_M.
Posts: 526
0 Kudos

Re: How do I create a digital signature for exe files

[ Edited ]
Great info!  Were you asking about getting products signed by Microsoft, or creating your own signature scheme?  Looks like that link was for win mobile users.  I think this one is for regular Win32 users. 

Hope it helps-

Message Edited by Travis M. on 07-10-2006 01:30 PM

Travis M
LabVIEW R&D
National Instruments