Check that an EXE file is code signed / digitally signed?
-
Does anyone know how (from C/C++) check if an EXE file is code signed / digitally signed? And how to get the company name that has signed the file? I need to create a function (in C/C++) that starts an EXE file with a known filename, but for security reasons I must first check that this is the original file (check that nobody has replaced the file with another one with same filename). I know how to get version information from an EXE file, but reading code signing info will make the function much safer.
-
Does anyone know how (from C/C++) check if an EXE file is code signed / digitally signed? And how to get the company name that has signed the file? I need to create a function (in C/C++) that starts an EXE file with a known filename, but for security reasons I must first check that this is the original file (check that nobody has replaced the file with another one with same filename). I know how to get version information from an EXE file, but reading code signing info will make the function much safer.
Can't you instead generate an MD5 hash code from the exe and check that against a valid value to see if the exe was replaced or not? Anyways, a little googling brought me to this[^], i guess you can go on from there...
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > "It doesn't work, fix it" does not qualify as a bug report. < > Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <
modified on Friday, October 15, 2010 4:20 PM
-
Can't you instead generate an MD5 hash code from the exe and check that against a valid value to see if the exe was replaced or not? Anyways, a little googling brought me to this[^], i guess you can go on from there...
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > "It doesn't work, fix it" does not qualify as a bug report. < > Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <
modified on Friday, October 15, 2010 4:20 PM
Thank you for your link. I think this will solve my problem. I will take a closer look. :)
-
Thank you for your link. I think this will solve my problem. I will take a closer look. :)
Yourwelcome.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world. Fry: But this is HDTV. It's got better resolution than the real world <