I do not want to verify the certificate. I want to use this on a build server to check all files and list the one that we may have forgot to sign.
-
Which language are you intending to use for that - Perl, Batch, PowerShell, ...?Helen– Helen2011-04-05 17:28:56 +00:00Commented Apr 5, 2011 at 17:28
-
We already use C#, PowerShell and Python in the build process. But most things would work I guess.Arve– Arve2011-04-05 17:45:57 +00:00Commented Apr 5, 2011 at 17:45
Add a comment
|
3 Answers
How about using the Get-AuthenticodeSignature PowerShell cmdlet? The description says:
If the file is not signed, the information is retrieved, but the fields are blank.
2 Comments
quux
Be aware that get-authenticodesignature will return "NOTsigned" for files that are catalog signed rather than PE signed. See itcookbook.net/blog/get-authenticodesignaturedoesnt
AH.
@quux the link you provided does not point to any valid link about authenticode.
There is a way:
The WinVerifyTrust API can be used to verify the signature of a portable executable file.
(source)