Skip to content

Use full root certificate bundle to fix broken OTA updates #205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
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.

1 participant