title: How to check if a file has a digital signature
body: <p>I'd like to check programatically if a file has been digitally signed or not.</p>
  <p>For the moment, I found a rather obscure <a href="https://docs.microsoft.com/en-us/windows/win32/seccrypto/example-c-program--verifying-the-signature-of-a-pe-file" rel="nofollow noreferrer">Microsoft code</a>, that doesn't compile...</p>
  <p>Any idea on the subject?</p>
  <p>An external tool with command line would also be great, by the way.</p>