Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Asynchronous HTTPS Server compatible with ESP32 series. #8234

xwtk started this conversation in General
Discussion options

Hey everyone.

I have an ESP32-S3 which is currently running ESP32-HTTPS-Server library which hasn't been updated for a few years now, it is for communication between other ESP32s. It is very unstable in terms of SSL Handshake and often falls and even crashes the whole system even when 2 devices request simultaneously.

I followed the developers guide to make the system asynchronous, that is, to assign the function to a specific core using FreeRTOS. I even tried to assign all the other functions to one core and the server one to another, it still often terminates SSL Handshakes in the middle of the connection, and again, sometimes even crashes if 2 devices try to send a request simultaneously.

I have tried @me-no-dev 's ESPAsyncWebServer, and it works really well. Yet I fail to understand how a less-powerful ESP8266 is able to run an HTTPS server, while the ESP32 is not compatible with ESPAsyncWebServer's HTTPS mode.

The reason why I need to use an HTTPS communication is to ensure the information is encrypted asymmetrically on-the-fly with complete End-to-End. If you have any suggestions such as using a different protocol or a different library, or maybe you have an implementation of HTTPS Server based on ESPAsyncWebServer library, or even an Arduino-ESP32 compatible implementation of the ESP-IDF HTTPS Server library, I would very much appreciate if you could help.

For those wondering, I have tried ESP-NOW but it needs to have the keys stored already in the devices, and only supports up to 17 encrypted devices.

You must be logged in to vote

Replies: 2 comments

Comment options

I'm about to test TLS support inside H4AsyncTCP, in which an H4AsyncWebServer relies upon.

You might checkout current states of both. TLS isn't published yet. And it's paramount to use H4 Timing library and a customized Arduino core build.

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /