question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SignFile returning code -2146762749

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
steveelliscommented, Dec 5, 2018

@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.

1reaction
clairernovotnycommented, Dec 5, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found