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.

ravyoli
  • 698
  • 6
  • 13

5 Answers5

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.

David Cain
  • 16,484
  • 14
  • 65
  • 75
DevAnimal
  • 379
  • 2
  • 9
2

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

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

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
ravyoli
  • 698
  • 6
  • 13
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.

tool4scs
  • 73
  • 5
  • Don't set your AppPool to run as `LocalSystem` identity. It is **not safe**! This solves it: http://stackoverflow.com/a/10804500/843732 – c00000fd Oct 08 '13 at 06:45
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.

Community
  • 1
  • 1
c00000fd
  • 20,994
  • 29
  • 177
  • 400
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.

Rami A.
  • 10,302
  • 4
  • 44
  • 87