简体   繁体   English

已签名和带时间戳的可执行文件执行失败,并且未显示正确的详细信息

[英]Signed and Time stamped Executable failed executing and does not show proper details

Please note that this issue is only applicable for Windows Server 2008 SP2 请注意,此问题仅适用于Windows Server 2008 SP2

I have developed one windows application. 我开发了一个Windows应用程序。 Prior distributing it I have signed and time stamped it using SHA1 and SHA256. 在分发之前,我已使用SHA1和SHA256对其进行了签名和时间戳。 This application is formed with multiple DLLs. 此应用程序由多个DLL组成。 I am signing each DLL during build process. 我在构建过程中签署每个DLL。 I have used certificate from VeriSign. 我使用过VeriSign的证书。 At the time of execution, when application is launched it verify the signature and time stamp of each DLL to ensure integrity using WinVerifyTrust API. 在执行时,启动应用程序时,它会验证每个DLL的签名和时间戳,以确保使用WinVerifyTrust API完整性。 I am getting "E_CERT_EXPIRED - Signer's Certificate was expired" error during validation. 验证期间我收到“E_CERT_EXPIRED - 签名者证书已过期”错误。

Also, I am not able to see the time stamping details in property page of the executable. 此外,我无法在可执行文件的属性页中看到时间戳细节。 Please see below - 请看下面 -

在此输入图像描述

Now, that certificate is expired but according to this SO article What happens when a code signing certificate expires? 现在,该证书已过期但根据此SO文章代码签名证书到期时会发生什么? . The executable should run perfectly without any problem. 可执行文件应该完美运行没有任何问题。

I have also checked for this KB suspecting the cause but fix related to this KB is already applied. 我还检查了这个KB怀疑原因,但已经应用了与此KB相关的修复。 Can anybody share more light on this? 任何人都可以分享更多的亮点吗?

You cannot sign with expired certificate, it not works (you see results yourself). 你不能用过期的证书签名,它不起作用(你自己看到结果)。 What you can do is to sign with valid certificate and then signed application will not expire because of valid timestamp at the time of signing. 您可以做的是使用有效证书进行签名,然后签名的应用程序将因签名时的有效时间戳而不会过期。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 回收IIS7应用程序池是否会终止当前正在执行的任何请求? - Does recycling the IIS7 application pool kill any currently executing requests? Powershell脚本获取IIS配置详细信息 - Powershell script to get IIS configuration details 有多个计划任务调用相同的可执行文件时的最佳做 - Best practice when having several scheduled tasks calling same executable 在Play 2.0.4中强制对上传文件的文件名进行正确的字符集编码 - Forcing proper charset encoding of the filename of uploaded file in Play 2.0.4 使用Windows Server 2008计划任务执行PHP文件 - Executing PHP file with Windows server 2008 Scheduled Task 通过PHP使用Exchange管理单元执行Powershell脚本 - Executing a powershell script with Exchange Snap-In via PHP Wix安装程序:无法等待子级连接到管道 - Wix Installer: Failed to wait for child to connect to pipe 从 Active Directory 获取用户详细信息 - Fetch user details from Active Directory 无法运行指定的任务可执行文件“cmd.exe”。指定的可执行文件不是此操作系统平台的有效应用程序 - The specified task executable "cmd.exe" could not be run.The specified executable is not a valid application for this OS platform 登录失败。用户'IIS APPPOOL \ ASP.NET v4.0'登录失败 - The login failed. Login failed for user 'IIS APPPOOL\ASP.NET v4.0'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM