how to check if a file has a digital signature

前端 未结 7 1244
情书的邮戳
情书的邮戳 2020-12-05 17:07

I\'d like to check programatically if a file has been digitally signed or not.

For the moment, I found a rather obscure code in MSDN, that doesn\'t compile...

<
7条回答
  •  孤城傲影
    2020-12-05 18:00

    Also you can try to use npm package sign-check for that purposes.

    This package implements WinVerifyTrust API and has simple usage:

    npm install -g sign-check
    
    sign-check 'path/to/file'
    

提交回复
热议问题