最新消息:走过的,离开的,已经错过,新开始2016

signtool签名出现”Error: SignerSign() failed.” (-2146869243/0x80096005)错误

技术随笔 果果 640浏览 2评论


今天自动打包报错了,exe签名错误。

SignTool Error: An unexpected internal error has occurred.
Error information: "Error: SignerSign() failed." (-2146869243/0x80096005)


发现所有的机器都这个错误。
之前使用的签名命令

signtool.exe sign /as /f "%pfxfilesource%" /p "%pfxpasswd%" /tr "http://timestamp.digicert.com/" /fd sha256 "%path%"

修改参数后解决,感谢评论指点。

signtool.exe sign /f "%pfxfilesource%" /p "%pfxpasswd%" /tr "http://timestamp.digicert.com/" /td sha256 /fd sha256 "%path%"

不知道是微软修改了还是时间戳服务器改了什么,记录一下,有相关错误的同学可以试试。
可以阅读微软文档 https://learn.microsoft.com/zh-cn/dotnet/framework/tools/signtool-exe

转载请注明:果果.IT » signtool签名出现”Error: SignerSign() failed.” (-2146869243/0x80096005)错误

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (2)

  1. The Digicert timestamp server is RFC3161 compliant and the /tr switch is preferred. Instead try adding /td sha256 to your commandline to resolve the issue.
    Tony1个月前 (04-22)
  2. Thank you for pointing that out.
    果果4周前 (04-23)