espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
12.96k stars 7.29k forks source link

ESP WEB Server to Support HTTPS #6069

Open tsctrl opened 2 years ago

tsctrl commented 2 years ago

Related area

esp32

Hardware specification

DevkitC

Is your feature request related to a problem?

this might be something that was well known but i am not able to justify on any information on the net for https web server on iot devices.

i am using esp webserver with wifi and it works well. no issue. but i am wondering if esp webserver library can be use with https connection or is there any recomendation for other web server library to support https secure connection. this might be not optimal as the cert has expiry on not suitable on iot devices. but i am open for any opinion why http is more suitable on this case where i could just take it as is or what could be the consideration to put the https in esp32

Describe the solution you'd like

https web server running on esp

Describe alternatives you've considered

No response

Additional context

No response

zekageri commented 1 year ago

I would love to see something like this. Even with self signet CA my life would be so much easier. If i could serve pages with HTTPS the esp could push notification to the user who is using the esp and the possibilities are endless!

Adrianotiger commented 1 year ago

I would like to see this too. Also because browsers are always more restrictive. On desktops there are some settings in the browser to allow insecure websockets for example. On mobile phones this options aren't available and so also a simple PWA is not able to connect to an ESP32.

alexiri commented 3 weeks ago

This is becoming more urgent now that web browsers are favoring https and making it harder and harder to use http.

lbernstone commented 3 weeks ago

Note that there is a 3rd party library as well as the C-based ESP-IDF library. Rewriting WebServer to use https would separate the esp32 and esp8266 codebases even further... Better for someone to wrap the idf functionality into a new 3rd party implementation with backwards compatibility.

JAndrassy commented 3 weeks ago

esp8266 supports secure server