c# - 如何从签名文件中获取签名者的姓名

标签 c# powershell cryptography digital-signature

我正在尝试使用 PowerShell 从签名文件中获取签名者的姓名。

FlashUtil_ActiveX.exe(在 Windows 10 中)的签名者是“Microsoft Windows 第三方应用程序组件”:
enter image description here
右键单击文件进行检查

enter image description here
使用 Sigcheck.exe 检查

当我用 powershell 尝试它时,它显示了不同的名称:
enter image description here

任何名称(“主题”和“发行者”)都不是“Microsoft Windows 第三方应用程序组件”。

我还尝试了 Get-AppLockerFileInformation 但没有成功:
enter image description here

最佳答案

我需要使用 Get-PfxCertificate 命令。
现在我可以看到签名者的名字出现在“签名列表”中。

这是使用命令的样子:
enter image description here

这是具有签名数量的文件(igfxSDK.exe)的示例:
enter image description here

关于c# - 如何从签名文件中获取签名者的姓名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38635594/

相关文章:

c# - 使用 XmlTextReader

c# - 如何检查唯一键约束

node.js - ‘加密’node.js模块: Cannot find package main file for package error

.net - XML DSIG : Enveloping signature transform in . 网络

c# - 获取所有应用程序的列表

c# - C++ 中的数组<T ^> ^T 是什么?如何从数组中提取值?

powershell - 覆盖脚本中的模板参数

azure - 使用托管标识从 Azure Runbook 运行 Get-AzADApplication

Vim 与 Powershell

python - 将 Python PyCrypto 与 Perl Crypt::CBC 结合使用