Enable Flash Encryption and Secure Boot v1 Externally
Posted: Thu Nov 20, 2025 1:44 pm
Hello everyone, I already know how to enable SB v2 and FE externally quite well. But now I want to take advantage of some chips I have, esp32 rev1.1, for which I want to enable, but externally, that is, using burn, sign, encrypt and flash commands, Secure Boot version 1, and I have some questions about it.
1.- What should I burn in the efuses of block 2? The 32-byte signature key, right?
openssl ecparam -name prime256v1 -genkey -noout -out my_secure_boot_signing_key.pem
espefuse.py --port PORT --chip esp32 burn_key secure_boot_v1 my_secure_boot_signing_key.pem
2.- Then I should select the reflashable bootloader option, fullclean, build, generate a bootloader digest and write it to address 0x0 of the flash?
esptool.py write_flash 0x0 bootloader-digest.bin
3.- Then sign the binaries (bootloader.bin and app.bin), encrypt them and flash them. With the FE and SBv1 activation efuses already burned, it should work.
Thank you.
1.- What should I burn in the efuses of block 2? The 32-byte signature key, right?
openssl ecparam -name prime256v1 -genkey -noout -out my_secure_boot_signing_key.pem
espefuse.py --port PORT --chip esp32 burn_key secure_boot_v1 my_secure_boot_signing_key.pem
2.- Then I should select the reflashable bootloader option, fullclean, build, generate a bootloader digest and write it to address 0x0 of the flash?
esptool.py write_flash 0x0 bootloader-digest.bin
3.- Then sign the binaries (bootloader.bin and app.bin), encrypt them and flash them. With the FE and SBv1 activation efuses already burned, it should work.
Thank you.