ESP32 Secure Bootloader
Posted: Thu Apr 04, 2019 10:42 pm
I am currently trying to use secure bootloader for the ESP32.
I currently in the hello world app and I am trying to implement secure boot. I am currently using these two links, https://docs.pycom.io/advance/encryption.html, and https://docs.espressif.com/projects/esp ... oject.html to help me through the process, and I have all the esp32 tool chain and download the source code. However, I am having tremendous difficulty transforming the secure_boot_signing_key.pem has to be transformed into secure-bootloader-key.bin, or producing that particular file. I am not quite sure what they mean.
I have done the command
And then the command
The last command just extracts the public key. If you look at both the espressif documentation and the pycom documentation, this just extracts a 64 bit key, which I thought would have been the secure bootloader key, but the secure bootloader key is just a 32 bit key. So how do I create a secure bootloader key?
I tried the build command and this does not produce a secure bootloader key either. I would appreciate any help in creating a secure boot loader with the hello world app. Thank you.
I currently in the hello world app and I am trying to implement secure boot. I am currently using these two links, https://docs.pycom.io/advance/encryption.html, and https://docs.espressif.com/projects/esp ... oject.html to help me through the process, and I have all the esp32 tool chain and download the source code. However, I am having tremendous difficulty transforming the secure_boot_signing_key.pem has to be transformed into secure-bootloader-key.bin, or producing that particular file. I am not quite sure what they mean.
I have done the command
Code: Select all
python $IDF_PATH/components/esptool_py/esptool/espsecure.py generate_signing_key secure_boot_signing_key.pem
Code: Select all
python $IDF_PATH/components/esptool_py/esptool/espsecure.py extract_public_key --keyfile secure_boot_signing_key.pem signature_verification_key.bin
I tried the build command
Code: Select all
make BOARD=GPY SECURE=on TARGET=boot