-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESPhttpUpdate Error[12] Signature verification failed #8707
Comments
I will roll back before the merge and try it with that version. |
Based on the PR above, |
Thanks for the super fast reply. I set the log level to The log with the unsigned bin that is created via the export shows, that no signature was found and he assumes the whole bin is the signature. So the length does not match.
The signed bin from the tmp directory has a signature with correct length. The SHA256 checksum is also correct. Therefore the error should be in the signature content?
Tomorrow I'm free and will check the signature and the commits. |
Thanks! memcmp operation looks most suspect atm, hash->len() may not be equal to sizeof(vrf). Will try to test this as well |
I switched to commit 313b3c0 and got the following result with the automatically signed bin.
With commit a0c7a85 it is the following output.
The signature is back to normal hex and not questionsmarks but invalid. To find the "bad" commit I started a git bisect. The tag 3.0.2 was good.
The current head is bad. After some steps the result was commit f78c633. That's the commit from the pull request you linked: #8507 Can I provide any other information to help you fix this? I'm not very experienced with Arduino but can do tests and am familiar with the Linux command line. |
sry, I meant reversal of the change done here |
I found the part, that let's the check fail in my case and created a pull request. |
Basic Infos
Platform
Settings in IDE
Problem Description
Since I used the latest version from the master branch the autosigning of the bin files does no longer work correctly. It worked with the last release. I switched to the git version because a bugfix for a component is not released yet.
I made a simplified MCVE with only WLAN and ESP8266httpUpdate to test that problem.
Is it intentional that the exported bin is not the signed bin? I can see that the signed bin from the tmp folder is 260 bytes bigger. I had expected that the signed bin would be exported, since it already detected, that it should be signed.
The main problem is that the signature verification does not work anymore. I searched through the documentation if i missed any change but could not find anything. Could you please help me with this MCVE?
MCVE Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: