summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/mongoose/docs/SSL.md
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/mongoose/docs/SSL.md')
-rw-r--r--3rdparty/mongoose/docs/SSL.md15
1 files changed, 5 insertions, 10 deletions
diff --git a/3rdparty/mongoose/docs/SSL.md b/3rdparty/mongoose/docs/SSL.md
index df9b005caaa..09f16e9e756 100644
--- a/3rdparty/mongoose/docs/SSL.md
+++ b/3rdparty/mongoose/docs/SSL.md
@@ -1,20 +1,15 @@
# Mongoose SSL guide
SSL is a protocol that makes web communication secure. To enable SSL
-in mongoose, 3 steps are required:
+in mongoose, 2 steps are required:
- 1. Valid certificate file must be created
- 2. `ssl_certificate` options must be set to contain path to the
- certificate file.
- 3. `listening_ports` option must contain a port number with letter `s`
- appended to it, which instructs Mongoose to use SSL for all connections
- made to that port.
+ 1. Create valid SSL certificate file
+ 2. Append SSL certificate file path to the `listening_ports` option
Below is the `mongoose.conf` file snippet for typical SSL setup:
- document_root www_root # Serve files in www_root directory
- listening_ports 80r,443s # Redirect all HTTP requests to HTTPS
- ssl_certificate ssl_cert.pem # Location of certificate file
+ document_root www_root # Serve files in www_root directory
+ listening_ports 80,443:cert.pem # Listen on ports 80 and 443
## How to create SSL certificate file