OVMS3-idf/examples/protocols/openssl_server
David Cermak a49b934ef8 examples: protocol examples which use common connection component
updated to use esp_netif_init instead of tcpip_adapter in initialization code
2019-11-13 12:36:25 +01:00
..
main examples: protocol examples which use common connection component 2019-11-13 12:36:25 +01:00
CMakeLists.txt protocol examples: enable protocol examples for esp32sbeta 2019-11-01 11:14:10 +08:00
Makefile examples/protocols/openssl: use common network component 2019-04-15 03:32:05 +00:00
README.md build system: Use CMake-based build system as default when describing commands 2019-07-08 17:31:27 +10:00

Openssl Example

The Example contains of OpenSSL server demo.

Open the project configuration menu (idf.py menuconfig):

  • Configure Wi-Fi or Ethernet under "Example Connection Configuration" menu. See "Establishing Wi-Fi or Ethernet Connection" section in examples/protocols/README.md for more details.

  • When using Make build system, set Default serial port under Serial flasher config.

IF you want to test the OpenSSL server demo:

  1. compile the code and load the firmware
  2. input the context of "https://192.168.17.128" into your web browser, the IP of your module may not be 192.168.17.128, you should input your module's IP
  3. You may see that it shows the website is not able to be trusted, but you should select that "go on to visit it"
  4. You should wait for a moment until your see the "OpenSSL server demo!" in your web browser

Note: The private key and certification at the example are not trusted by web browser, because they are not created by CA official, just by ourselves. You can alse create your own private key and ceritification by "openssl at ubuntu or others". We have the document of "ESP8266_SDKSSL_User_Manual_EN_v1.4.pdf" at "https://www.espressif.com/en/support/download/documents". By it you can gernerate the private key and certification with the fomate of ".pem"

See the README.md file in the upper level 'examples' directory for more information about examples.