SignTool 出现意外内部错误

发布于 2024-11-25 11:59:29 字数 430 浏览 0 评论 0原文

我正在使用以下命令运行 SignTool: Signtool 签名 /f keyfile.pfx /p mypassword pathToMsiFile.msi 我收到以下错误:

SignTool 错误:发生意外的内部错误。错误 信息:“错误:Store::ImportCertObject() 失败。” (-2146893792/0x80090020)

直到一天前它才起作用,我不知道可能发生了什么变化......

任何想法都会很棒,谢谢!


我设法修复它。 显然用户已损坏。

在修复用户使用 Microsoft 的此 KB 后,一切又恢复正常了。

I am running SignTool with the following command:
signtool sign /f keyfile.pfx /p mypassword pathToMsiFile.msi
and i get the following error:

SignTool Error: An unexpected internal error has occurred. Error
information: "Error: Store::ImportCertObject() failed."
(-2146893792/0x80090020)

It worked just until a day ago, and i have no idea what might have changed...

Any ideas would be great, thanks!


I managed to fix it.
Apperantly the user was corrupted.

after fixing the user using this KB from microsoft everything became right again.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

走走停停 2024-12-02 11:59:29

我遇到了同样的问题,但仅当我尝试在 IIS/PHP 脚本下对其进行签名时。当我从控制台运行 PHP 时,一切正常。这里帐户没有问题。只有一件事对我有帮助 - 将站点/应用程序匿名身份验证凭据特定用户更改为应用程序池身份

I had the same issue but only when I'm trying to sign it under IIS/PHP script. When I run PHP from the console it's OK. And here there were no issue with account. Only one thing helped me - changing Anonymous Authentication Credentials for Site/application from Specific USER to Application pool identity.

∞琼窗梦回ˉ 2024-12-02 11:59:29

我设法修复它。显然用户已损坏。

修复用户后 使用 Microsoft 的此 KB 一切又恢复正常了。

I managed to fix it. Apperantly the user was corrupted.

after fixing the user using this KB from microsoft everything became right again.

他夏了夏天 2024-12-02 11:59:29

对于使用 Windows 2008 R2 和 IIS 7.5 的我来说,建议的答案都不起作用。有效的是更改应用程序池的设置。这是在 IIS 7.5 上运行的内容。

  1. 选择您的应用程序池,然后单击
  2. “进程模型”下的“高级设置”,将“身份”更改为“本地系统”

,这是唯一对我有用的方法,希望它能对其他人有所帮助。

None of the suggested answers worked for me using Windows 2008 R2 and IIS 7.5. What did work was to change a setting for the application pool. Here is what works on IIS 7.5.

  1. Select your application pool and click Advanced Settings
  2. Under Process Model, change Identity to LocalSystem

This is the only thing that worked for me, hopefully it will help others down the road.

以可爱出名 2024-12-02 11:59:29

我不确定从安全角度来看,将您的应用程序池设置为作为LocalSystem运行是否是一个好主意。修复此错误的一种方法是在应用程序池的高级设置中启用加载用户配置文件。不要问我花了多长时间才找到它...

这是更多详细信息

I'm not sure if setting your Application Pool to run as the LocalSystem is a good idea from the security standpoint. One way to fix this error is to enable Load User Profile in Advanced settings for the Application Pool. Don't ask how long it took me to find it out...

Here's more details.

江挽川 2024-12-02 11:59:29

我还在使用带有域凭据的 IIS Web 应用程序池的 Web 应用程序中遇到此错误,但“加载用户配置文件”设置为 false。一旦我将其设置为 true,signtool.exe 就可以正常工作。

I was also experiencing this error within a web application which was using an IIS web application pool with domain credentials, but the "Load User Profile" was set to false. Once I set it to true, signtool.exe worked without issues.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文