SignFile returning code -2146762749
See original GitHub issueI’m coming to this from @onovotny’s https://github.com/onovotny/SignService which includes this library.
I’m seeingAuthenticodeKeyVaultSigner.SignFile
return a code of -2146762749 which googling tells me may be coming from something called WinTrust
or WinVerifyTrust
. In my case I suspect this is because I am testing with a certificate that is self-signed.
Does anyone have any thoughts on this? Am I on the right track with this or is this likely something else? Should I expect this to work with a self-signed certificate?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
SigningHelper: error 0x800b0003 while attempting to sign file
Solved: Hello, I upgraded from version 2016 to 2020 r2 to generate .msix package. I followed this procedure.
Read more >Getting An error occurred while signing: Failed to sign file. ...
1 Answer 1 ... According to the error message, you have to import the certificate into agent machine's personal store. When you reference...
Read more >SignFile Task - MSBuild
Learn how MSBuild uses the SignFile task to sign the specified file using the specified certificate.
Read more >Untitled
... SignFile returning code -2146762749 · Issue #60 · vcsjones Web13 Jan 2011 · Winverifytrust returned -2146869232. file not trusted.
Read more >MSB3482: An error occurred while signing - MSBuild
This error occurs when MSBuild encounters an error while trying to sign an output file when running the SignFile task.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@onovotny and @vcsjones thank you for your thoughts on this! Kevin you are exactly right. I was testing with text file that i just added an .exe too… As soon as changed it to a real exe file everything worked.
The tool should work with a self-signed certificate. I use that regularly for my testing (though I believe the dates must be valid).
@vcsjones would know more.