SignTool 出现意外内部错误
我正在使用以下命令运行 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我遇到了同样的问题,但仅当我尝试在 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
forSite/application
fromSpecific USER
toApplication pool identity
.我设法修复它。显然用户已损坏。
修复用户后 使用 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.
对于使用 Windows 2008 R2 和 IIS 7.5 的我来说,建议的答案都不起作用。有效的是更改应用程序池的设置。这是在 IIS 7.5 上运行的内容。
,这是唯一对我有用的方法,希望它能对其他人有所帮助。
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.
This is the only thing that worked for me, hopefully it will help others down the road.
我不确定从安全角度来看,将您的
应用程序池
设置为作为LocalSystem
运行是否是一个好主意。修复此错误的一种方法是在应用程序池
的高级设置中启用加载用户配置文件
。不要问我花了多长时间才找到它...这是更多详细信息。
I'm not sure if setting your
Application Pool
to run as theLocalSystem
is a good idea from the security standpoint. One way to fix this error is to enableLoad User Profile
in Advanced settings for theApplication Pool
. Don't ask how long it took me to find it out...Here's more details.
我还在使用带有域凭据的 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.