Skip to content

Conversation

@emericklaw
Copy link
Contributor

@emericklaw emericklaw commented May 18, 2025

Description

The OTA update is broken as discussed in #202 which relates to certificate issues with objects.githubusercontent.com.

The current build only include the common root certificates using CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN=y
Changing this to CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL=y gets OTA updates working again.

This does increase the firmware size by 46k but takes the root certificate coverage from 90% to ~100%.

The other alternative is to include the missing root certificate for Comodo AAA Services root which has been done in the 5.4.1 version of ESP-IDF.

espressif/esp-idf@a83a0ab

Either via a patch or upgrading ESP-IDF to 5.4.1 which is covered in #200

This unfortnately means that all current badge users will have to reflash using the web flasher.

@emericklaw emericklaw changed the title Use full root certificate bundle Use full root certificate bundle to fix broken OTA updates May 18, 2025
@MatthewWilkes
Copy link
Member

This works well, thanks!

@MatthewWilkes MatthewWilkes self-requested a review August 14, 2025 15:21
@MatthewWilkes MatthewWilkes merged commit d1940aa into emfcamp:main Aug 14, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants