Help with code signing error

I got a new Comodo code signing certificate and am trying to sign my executable using the following command:

“C:\Program Files (x86)\Windows Kits\10\bin\10.0.17134.0\x86\signtool” sign /fd sha256 /td sha256 /f “C:\Blah\CodeSigningCert_2018.pfx” /p myPassword /tr http://timestamp.comodoca.com/rfc3161 /v “C:\Blah\MyApp.exe”

But, that gives me the following error:

SignTool Error: An unexpected internal error has occurred.
Error information: “Error: Store::ImportCertObject() failed.” (-2146885630/0x80092002)

Searching on the internet did turn up many results for this, but, nothing pointed to a definite answer and nothing has worked for me so far.

I would appreciate any help towards fixing this.

Thank you.

Are you using Windows 7? Newer version of signtool I’m using doesn’t work there. Also, I remember trying different versions of signtool from various SDKs until I found one working for my use case. I’m using the one from Windows 8.1 SDK and I sign on Win 8.

I’m also using the 8.1 sdk. Is your Comodo address correct?

This is what I’m using:

"C:\Program Files (x86)\Windows Kits\8.1\bin\x64\signtool.exe" sign /fd SHA256 /a /f "C:\Folder\2015.pfx" /p PASSWORD /t http://timestamp.comodoca.com /v "C:\Folder\app.exe"

For the benefit of anyone else running into this:

The error turned out to be a bug in Mozilla Firefox browser as multiple have reported in the following thread.

For now, I used the DigiCertUtil work-around one of the posters on that thread mentioned.