Add a 'esp_https_server' component allowing to use http_server with OpenSSL

This commit is contained in:
Ondřej Hruška
2018-10-31 23:17:00 +01:00
committed by bot
parent a10fc02dd9
commit 4dd0fa61e9
15 changed files with 651 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# HTTP server with SSL support using OpenSSL
This example creates a SSL server that returns a simple HTML page when you visit its root URL.
See the `esp_https_server` component documentation for details.
## Certificates
You will need to approve a security exception in your browser. This is because of a self signed
certificate; this will be always the case, unless you preload the CA root into your browser/system
as trusted.
You can generate a new certificate using the OpenSSL command line tool as shown in the script
`main/certs/gencert.sh`. It is **strongly recommended** to not reuse the example certificate in
your application; it is included only for demonstration.