Skip to content

ksitko/Secure-OTA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secure OTA

Secure-OTA allows the ESP32 to securely update firmware from a AWS S3 bucket. The connection is secured using mbedtls. The program calculates and compares the current boot partition MD5 Checksum to that of a remote binary. If the hashes are identical then the program will not attempt to update the firmware. However if the hashes are different then Secure-OTA will erase a partition it has selected to be the new partition and download the remote binary. Upon completion it will recalculate the local checksum, this time of the new partition, and compare it to the one in from the remote server. If it finds that they match then it will set the new partition as the new boot partition and restart.

TODO:

Cleanup TLS

Known Issues:

Leaking memory: 128 Bytes per cycle. Need to plug leak.

Fails to verify peer certificate: "The certificate validity starts in the future"

About

Firmware Over the Air using TLS for Espressif ESP32

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages