-
Notifications
You must be signed in to change notification settings - Fork 7.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
Generating signing key for Secure Boot V2 throws an error (IDFGH-3887) #5786
Comments
I changed f.write(private_key) into f.write(private_key.encode()) in line 161 of file espsecure.py and it works. |
Hi @achraf-boussaada @hashyaha .This issue occurs under python3, but pytnon2 works well. We will fix this. |
The fix is already in the master of esptool repo but was not updated in ESP-IDF. espressif/esptool@c67e079. We will update it ASAP. |
Thanks for reporting, and sorry for slow turnaround. The fix is available at 46b3a6d. Feel free to reopen. |
Hello, yes use python2 to always launch |
Environment
Problem Description
the problem here is simple and straightforward, executing:
throws the following error:
NOTES:
Executing the same command with the
--version 1
flag works without a problemDespite throwing an error with
--version 2
, the file was created but with 0 bytes as size.The text was updated successfully, but these errors were encountered: