Page 1 of 1

ESP32 as web server with http and https services at the same time

Posted: Mon Sep 25, 2017 2:29 pm
by santanapablo1975
Hi All

I made some tests implementing web server solutions in the ESP32 like sockets, http services and https services every test is fine but when I tried to put all together I realize that the SSL services for the https do not work... my impression is that the SSL handshake is blocked if other services (non SSL) are open.

I would like to ask to the forum how to implement such services all together?

Regards

Thanks in advance! / MfG / Saludos

Juan

Re: ESP32 as web server with http and https services at the same time

Posted: Mon Oct 30, 2017 4:47 am
by kolban
I think I have been successful in making outbound SSL calls, receiving in-bound SSL requests and also sending/receiving un-encrypted socket data. If you can provide more details, maybe the community can look deeper to see if there is something that can be recreated by others?

Re: ESP32 as web server with http and https services at the same time

Posted: Thu Nov 02, 2017 1:45 pm
by santanapablo1975
Hi Mr Kolban, thanks for the feedback.

I am going first to make a double check by my side, looks like then there is bug in the "end user side" (me) ;)

Regards

Juan

Re: ESP32 as web server with http and https services at the same time

Posted: Fri Dec 29, 2017 8:26 am
by Monstercrunch
Hi,

Would you mind sharing your work ? I'm trying to make an HTTPS server with my ESP32 :)

Thanks

Re: ESP32 as web server with http and https services at the same time

Posted: Fri Jan 19, 2018 9:38 pm
by santanapablo1975
Hi, about the example, please take a look here

https://github.com/espressif/esp-idf/tr ... ssl_server

Regards

Juan

Re: ESP32 as web server with http and https services at the same time

Posted: Thu May 17, 2018 10:42 am
by snahmad75
Is open SSL on esp32 different from TLS which kolban C++ HttpServer class uses.


Is this only example for open SSL use . do we have C++ class for it.

https://github.com/espressif/esp-idf/tr ... ssl_server

Re: ESP32 as web server with http and https services at the same time

Posted: Thu May 17, 2018 2:19 pm
by kolban
My loose understanding is that the SSL implementation in ESP-IDF is based on an implementation called "mbedtls". Another/alternative implementation for SSL is called "Open SSL". Both these packages have different APIs but similar functions. The Open SSL story on ESP32 is (I believe) a set of API mapping that allow an application to use the Open SSL APIs but those are mapped/shimmed to call mbedTLS under the covers.

Re: ESP32 as web server with http and https services at the same time

Posted: Thu May 17, 2018 2:36 pm
by snahmad75
ok, thanks for explanation.