SignTool unexepected internal error

ravyoli picture ravyoli · Jul 19, 2011 · Viewed 8.1k times · Source

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.

Answer

DevAnimal picture DevAnimal · Nov 1, 2012

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.