作为构建系统的一部分,我们将使用带有证书的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
发布评论