I\'m trying to write a C# program that verifies the digital signature of exe\'s. The exe\'s are signed with an authenticode certificate, and I want to detect tampering.
Could you just shell to signtool.exe /verify, and check the result?
signtool.exe /verify
I recently wrote a simple app which signs executables using the same method, and it works great.
Signtool on MSDN