SignTool.exe偶尔失败,退出代码为1 [英] SignTool.exe Sporadically Fails with Exit Code 1

查看:298
本文介绍了SignTool.exe偶尔失败,退出代码为1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为构建系统的一部分,我们将使用带有证书的signtool.exe对二进制文件进行构建后对其进行签名.有时(很难说出何时会发生),签名失败:

As part of our build system, we use signtool.exe with a certificate to sign our binaries once they've been built. Occasionally (it's hard to tell when it will strike), the signing fails:

 error MSB3073: The command "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\signtool.exe" [...] exited with code 1.

根据MSDN,退出代码为1表示对文件签名时出错.我可以验证文件没有签名.

According to the MSDN, an exit code of 1 means that there was an error signing the file. I can verify that the file didn't get signed.

我还注意到,有时时间戳记部分会因其他错误消息而超时,尽管该文件仍被签名(没有时间戳记).

I've also noticed that occasionally, the timestamp portion times out with a different error message, albeit that the file still gets signed (without the timestamp).

如何解决这些看似随机,不一致的签名故障?

How can I troubleshoot and fix these seemingly random, inconsistent signature failures?

推荐答案

我强烈怀疑与时间戳服务器的连接失败会导致偶尔的失败.也许您在相关时间检查系统事件日志中是否有丢失的连接.

I strongly suspect a failing connection to the timestamp server being responsible for occasional failures. Perhaps you check your system event log for lost connections at the time in question.

这篇关于SignTool.exe偶尔失败,退出代码为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆