以编程方式检查DLL/EXE文件是否已通过authenticode签名的最佳方法是什么? [英] What is the best way to check programatically if DLL/EXE file is signed with authenticode?
本文介绍了以编程方式检查DLL/EXE文件是否已通过authenticode签名的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不想验证证书.我想在构建服务器上使用它来检查所有文件,并列出我们可能忘记签名的文件.
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.
推荐答案
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.
这篇关于以编程方式检查DLL/EXE文件是否已通过authenticode签名的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文