Riva:
I'm not sure as I don't use servers on ESP but a google search yields this library for the ESP32. It may be worth checking if the HTTPS is already baked into the WebServer instead of using separate header file.
Thanks. Had a little play with it and it does look promising although very different and more complex to program than the built-in library. The built-in library would have been ideal as the coding is identical and with a few minor tweaks I could have had one codebase for both platforms. Using the Frank Hessel library will require a complete re-write, but at least its an option.
As already mentioned, I was puzzled by the fact that when I type in #include <WebServerSecure.h> it turns bold red as though it was a recognized module, but I then got a compiler error so compared the corresponding paths in the two libraries:
~/.arduino15/packages/esp8266/hardware/esp8266/2.6.3/libraries/ESP8266WebServer
~/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/WebServer
Among other things, this contains a file called keywords.txt. The ESP32 version contains as follows:
#######################################
# Datatypes (KEYWORD1)
#######################################
WebServer KEYWORD1
WebServerSecure KEYWORD1
HTTPMethod KEYWORD1
So as can be seen, the keyword 'WebServerSecure' is present. However, although the ESP8266 path contains ESP8266WebServerSecure.h and ESPWebServerSecure.cpp files, the ESP32 does NOT contain either a corresponding WebServerSecure.h or WebServerSecure.cpp file as perhaps might be expected. Having had a look at the ESP32 Git repository, I find the same.
Can anyone shed any light on this? Is this a file omission from the library, or was the secure version never implemented?
UPDATE:
Just to add that I found this via Google:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/protocols/esp_https_server.html
It appears to relate to the Frank Hessel Library but does not explicitly give credit to that author, so is the Frank Hessel HTTPS library now built-into the ESP32 library? Is it now the de-facto HTTPS library for the ESP32? I see that the Hessel Library was updated from version 0.3.1 to 1.0.0 yesterday, so how long before these changes propagate to the ESP32 library?