C#: How to detect tampering of authenticode signed file

后端 未结 2 1614
既然无缘
既然无缘 2021-01-14 18:22

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.

2条回答
  •  情话喂你
    2021-01-14 19:18

    Could you just shell to signtool.exe /verify, and check the result?

    I recently wrote a simple app which signs executables using the same method, and it works great.

    Signtool on MSDN

提交回复
热议问题