Skip to content

Conversation

rob-deutsch
Copy link

@rob-deutsch rob-deutsch commented Nov 12, 2020

@tve has created a branch of AsyncTCP which supports client-side TLS. This is useful for ESPHome if you want to use MQTT over TLS.

I would like to suggest that it be added to ESPHome's AsyncTCP to enable ESPHome experimental support for TLS which will need to be explicitly enabled by a user in the YAML.

I have been using ESPHome with this branch of AsyncTCP for a while now and I haven't observed any problems.

There is a discussion about this branch here: me-no-dev#48

fremouw and others added 30 commits September 26, 2018 10:00
…sion added all SSL stuff between defines. In order to enable SSL add -DASYNC_TCP_SSL_ENABLED to your build flags.
tve and others added 9 commits September 25, 2019 21:10
* Fix assertion errors

* Add state check

* replace tabs with spaces
* Tidy up and fix some edge cases.

* Make sure we always release a closed_slot.
* Fix LoadProhibited (me-no-dev#73)
* Use sizeof instead of strlen for const char[]
* Add Kconfig option to control ASYNC_TCP_SSL_ENABLED
* Optionally include ssl header files
* Add null check for psk_ident and pskey
* Do not default to PSK when root_ca is not explcitly set. tcp_ssl_new_client() has a case to handle this.
* Move psk null checks to top of function, remove unneeded include, syntax cleanup.

Authored-by: Bob <[email protected]>
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.

8 participants