Checking for valid digital signature

Windows specific forum
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Checking for valid digital signature

Post by jassing »

I need to have some files do a "self check" to make sure A) the file is digitally signed, and B) that signature is still valid and C) who signed the file.

You can sign a file, then hack the file, but this invalidates the signature; but the signature is still there; you can then resign the file. So technically, the file has two digital signatures, only one valid.

I need to be able to do a 'self check' that makes sure my digital signature was the last one to sign it; and it's still a valid signature.

There's got to be an api or series of api's to do this.
thanks
-j