views:

615

answers:

2

Hi,

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...

Any idea on the subject?

An external tool with command line would also be great, by the way.

+3  A: 

If you need and external tool, you can use signtool.exe. It is part of the Windows SDK, it takes command line arguments, and you can find out more about it here, http://msdn.microsoft.com/en-us/library/aa387764.aspx

LanceSc
A: 

Well, thanks a lot LanceSc, SignTool will be OK for my needs (part of an automatic delivery script, so external tools are OK).

Got a ClaimID issue though, and I don't know how to grant you the answer (nor edit the question btw) as an anon user...

No worries, just glad to help out.
LanceSc