How to check firmware bin file for valid signature before writing to flash?
Posted: Mon Jun 12, 2023 4:32 am
Is there an API to check a firmware bin file for a valid signature without writing it to the flash using the OTA system?
My scenario is I want to drop a fw file on an sd card connected to the esp32. When I boot I will check the file is there, if it is I'll read its version. If the version is newer than the running firmware, I'll check its digital signature to make sure it is firmware I have released and not a hacking attempt. If that checks out I'll write it to the flash using the ota_* API.
Thanks,
Felix
My scenario is I want to drop a fw file on an sd card connected to the esp32. When I boot I will check the file is there, if it is I'll read its version. If the version is newer than the running firmware, I'll check its digital signature to make sure it is firmware I have released and not a hacking attempt. If that checks out I'll write it to the flash using the ota_* API.
Thanks,
Felix