gpt4 book ai didi

windows - 为什么 Windows 声明 "Unverified Publisher"用于带有随后过期证书的签名可执行文件

转载 作者:可可西里 更新时间:2023-11-01 10:03:50 31 4
gpt4 key购买 nike

2014 年,我从 StartSSL 购买了二级代码签名证书,用于对我的二进制文件进行数字签名。该证书刚刚过期,实际上我正在尝试获取新证书。然而,在一个不相关的事件中,我在 VM 中运行了一个我签名的安装程序,当 Windows 弹出 UAC 对话框的“Unverified Publisher”变体时,我有点……恼火……。

当我查看数字签名属性时,我看到了:

WTF

当然证书已经过期了,但是为什么(在有效期内签名的)文件突然不验证了呢?我还没有看到其他软件发生这种情况,例如,如果我查看 Office 2003 安装程序的旧签名副本,它不会提示签名无效并且有效期在十年前就已过期。

Still valid

这是为什么?坦率地说,我现在想知道首先购买证书的意义是什么,并认真考虑取消进程中的替换。当他们使自己无效时,似乎有点毫无意义。或者这是 2 类和 3 类之间的区别? (Class 3 是我现在想要掌握的版本)

最佳答案

这显然是某些代码签名证书的设计限制,如 Microsoft 博客文章的第一个脚注所述,Everything you need to know about Authenticode Code Signing :

Not all publisher certificates are enabled to permit timestamping to provide indefinite lifetime. If the publisher’s signing certificate contains the lifetime signer OID (OID_KP_LIFETIME_SIGNING 1.3.6.1.4.1.311.10.3.13), the signature becomes invalid when the publisher’s signing certificate expires, even if the signature is timestamped. This is to free a Certificate Authority from the burden of maintaining Revocation lists (CRL, OCSP) in perpetuity.

您可能希望检查替代证书是否具有相同的限制,并可能考虑替代供应商。

关于windows - 为什么 Windows 声明 "Unverified Publisher"用于带有随后过期证书的签名可执行文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41418162/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com