• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

main/11-Mar-2024-670492

CMakeLists.txtD11-Mar-2024459 118

MakefileD11-Mar-2024269 113

README.mdD11-Mar-20241.2 KiB2918

sdkconfig.defaultsD11-Mar-2024109 43

README.md

1# HTTP Websocket server with SSL support
2
3This example creates a SSL server and employs a simple Websocket request handler. It demonstrates handling multiple clients from the server including:
4* PING-PONG mechanism
5* Sending asynchronous messages to all clients
6
7See the `esp_https_server` component documentation for details.
8
9Before using the example, open the project configuration menu (`idf.py menuconfig`) to configure Wi-Fi or Ethernet. See "Establishing Wi-Fi or Ethernet Connection" section in [examples/protocols/README.md](../../README.md) for more details.
10
11## Certificates
12
13You will need to approve a security exception in your browser. This is because of a self signed
14certificate; this will be always the case, unless you preload the CA root into your browser/system
15as trusted.
16
17You can generate a new certificate using the OpenSSL command line tool:
18
19```
20openssl req -newkey rsa:2048 -nodes -keyout prvtkey.pem -x509 -days 3650 -out cacert.pem -subj "/CN=ESP32 HTTPS server example"
21```
22
23Expiry time and metadata fields can be adjusted in the invocation.
24
25Please see the openssl man pages (man openssl-req) for more details.
26
27It is **strongly recommended** to not reuse the example certificate in your application;
28it is included only for demonstration.
29