Skip to content

feat(esp8266): add BearSSL TLS support#1

Open
2asoft wants to merge 1 commit intoesphome-libs:mainfrom
2asoft:aasoft/esp8266-mqtt-tls
Open

feat(esp8266): add BearSSL TLS support#1
2asoft wants to merge 1 commit intoesphome-libs:mainfrom
2asoft:aasoft/esp8266-mqtt-tls

Conversation

@2asoft
Copy link
Copy Markdown
Collaborator

@2asoft 2asoft commented Mar 25, 2026

Summary

Add BearSSL-backed TLS support for ESP8266.

This adds the BearSSL transport path and the SSL hooks needed by downstream clients that open secure TCP connections and rely on fingerprint-based verification.

Changes

  • add the BearSSL transport implementation for ESP8266
  • extend AsyncClient SSL/TLS handling for the BearSSL path
  • add ESP8266 TLS error codes for handshake and runtime failures
  • add BearSSL configuration plumbing via SSL_CTX_PARAMS
  • keep SSL backend selection explicit in async_config.h

Why

ESPHome needs maintained ESP8266 MQTT TLS support. The downstream MQTT client needs a TCP layer with TLS support. This is that support.

Verification

Verified downstream in ESPHome using local dependency overrides to this branch.

This adds the BearSSL transport path and the supporting SSL hooks needed by downstream fingerprint-based MQTT clients.
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