SignTool.exe偶尔失败,退出代码为1

编程入门 行业动态 更新时间:2024-10-11 05:31:06
本文介绍了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

本文发布于:2023-11-13 06:25:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1583691.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:代码   SignTool   exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!