khoih-prog / AsyncWebServer_ESP32_W5500

Asynchronous HTTP and WebSocket Server Library for (ESP32 + LwIP W5500). Now supporting using CString to save heap to send very large data and with examples to demo how to use beginChunkedResponse() to send large html in chunks
GNU General Public License v3.0
11 stars 6 forks source link

TLS encryption #2

Closed LaudixGit closed 1 year ago

LaudixGit commented 1 year ago

Is your feature request related to a problem? Please describe.

Would like to use TLS encryption

Describe the solution you'd like

Would like Self Signed Certs to work in this library

Describe alternatives you've considered

I successfully use encryption in ESP32_HTTPS_Server but that library isn't 'native' async

Additional context

I attempted to use the existing BeginSecure within this library but there is a compile error image image

LaudixGit commented 1 year ago

@khoih-prog Since you don't mention encryption in the feature list, and there aren't any examples, I suspect you already know the ASYNC_TCP_SSL_ENABLED is not complete yet.

I am just adding this request to show interest. I would rather the HTTPS_Server_Generic library include async than have this library updated. (e.g., it would become the AsyncHTTPS_Server_Generic library)

khoih-prog commented 1 year ago

The TLS/SSL is not ready for all AsyncWebServer libraries. And I don't have the plan to update in the near future.

Certainly, any PR to add the feature is appreciated.

khoih-prog commented 1 year ago

Hi @LaudixGit

I'll try to make the new HTTPS_Server_Generic library to support many more powerful-enough boards, such as ESP32, ESP8266, Teensy, RP2040, etc.

Try the newly-published HTTPS_Server_Generic library, especially the Async-Server example


Releases v1.2.0

  1. Initial coding to port esp32_https_server and ESP32_HTTPS_Server to ESP32 boards, WT32_ETH01, (ESP32 + LwIP W5500) and (ESP32 + LwIP ENC28J60) Ethernet
  2. Use allman astyle and restyle library.

TO DO

  1. Fix bug. Add enhancement
  2. For ESP32, using ESP_TLS for future ESP-IDF v5.0 instead of to-be-deprecated OpenSSL
  3. Using ArduinoJson v6 instead of v5.13.5-
  4. Add support to more powerful-enough boards using LwIP WiFi/Ethernet, such as :
    • ESP8266
    • Portenta_H7 WiFi / Ethernet
    • RP2040W WiFi
    • Teensy 4.1 QNEthernet
    • etc.