【问题标题】:Extract certificate (.cer) from installer programmatically以编程方式从安装程序中提取证书 (.cer)
【发布时间】:2016-06-14 07:00:58
【问题描述】:

我正在构建一个安装程序,需要提取 .cer 以便可以将其添加到受信任的发布者,类似于此问题/答案。

https://superuser.com/a/464233

我已经做到了,一切正常。数字签名选项卡中的“复制到文件”是否可以使用 PowerShell 或类似工具自动执行?

【问题讨论】:

    标签: powershell certificate installation digital-signature x509certificate


    【解决方案1】:

    您可以运行Get-AuthenticodeSignature cmdlet 从 MSI 检索身份验证签名证书。

    【讨论】:

    • 来吧,返回的对象包含签名证书。通过管道将其传送到 Format-List cmdlet,您将看到。
    猜你喜欢
    • 2012-09-29
    • 1970-01-01
    • 2010-11-28
    • 2012-10-09
    • 2020-06-12
    • 2011-09-11
    • 2011-07-02
    • 1970-01-01
    • 2017-11-22
    相关资源
    最近更新 更多