The other day I encountered the following error while trying to sign an executable with signtool
:
SignTool Error: An unexpected internal error has occurred.
Error information: "Error: SignerSign() failed." (-2146869243/0x80096005)
It turned out to be due to a missing flag in the signtool.exe
command, as explained in this article.