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

santanapablo1975
Posts: 34
Joined: Wed Feb 15, 2017 8:31 pm

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

Postby santanapablo1975 » Mon Sep 25, 2017 2:29 pm

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

User avatar
kolban
Posts: 1447
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

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

Postby kolban » Mon Oct 30, 2017 4:47 am

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?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

santanapablo1975
Posts: 34
Joined: Wed Feb 15, 2017 8:31 pm

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

Postby santanapablo1975 » Thu Nov 02, 2017 1:45 pm

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

Monstercrunch
Posts: 3
Joined: Thu Aug 03, 2017 5:46 pm

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

Postby Monstercrunch » Fri Dec 29, 2017 8:26 am

Hi,

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

Thanks

santanapablo1975
Posts: 34
Joined: Wed Feb 15, 2017 8:31 pm

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

Postby santanapablo1975 » Fri Jan 19, 2018 9:38 pm

Hi, about the example, please take a look here

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

Regards

Juan

snahmad75
Posts: 134
Joined: Wed Jan 24, 2018 6:32 pm

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

Postby snahmad75 » Thu May 17, 2018 10:42 am

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

User avatar
kolban
Posts: 1447
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

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

Postby kolban » Thu May 17, 2018 2:19 pm

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.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

snahmad75
Posts: 134
Joined: Wed Jan 24, 2018 6:32 pm

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

Postby snahmad75 » Thu May 17, 2018 2:36 pm

ok, thanks for explanation.

Who is online

Users browsing this forum: No registered users and 2 guests