SignTool unexepected internal error
Asked Answered
B

5

6

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.

Bacciferous answered 19/7, 2011 at 8:36 Comment(0)
B
2

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

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

Bacciferous answered 26/7, 2011 at 12:38 Comment(0)
H
3

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.

Heartstricken answered 1/11, 2012 at 15:17 Comment(0)
B
2

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

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

Bacciferous answered 26/7, 2011 at 12:38 Comment(0)
L
1

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.

Lancet answered 17/1, 2013 at 23:24 Comment(1)
Don't set your AppPool to run as LocalSystem identity. It is not safe! This solves it: https://mcmap.net/q/1730426/-signtool-unexepected-internal-errorJokester
J
1

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.

Jokester answered 8/10, 2013 at 6:44 Comment(0)
C
0

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.

Cognation answered 29/5, 2012 at 18:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.