Skip to content

Commit

Permalink
docs: add examples for cert-reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
YingjieQiao committed Aug 26, 2021
1 parent 1299ea9 commit 0215f5d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/source/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,16 @@ TLS_SERVER Auto-negotiate the highest protocol version like TLS,

Whether client certificate is required (see stdlib ssl module's)

**Options:**

`--cert-reqs=0` --- no client veirifcation

`--cert-reqs=1` --- ssl.CERT_OPTIONAL

`--cert-reqs=2` --- ssl.CERT_REQUIRED



.. _ca-certs:

``ca_certs``
Expand Down
7 changes: 7 additions & 0 deletions gunicorn/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2088,6 +2088,13 @@ class CertReqs(Setting):
default = ssl.CERT_NONE
desc = """\
Whether client certificate is required (see stdlib ssl module's)
============== ===========================
`--cert-reqs=0` --- no client veirifcation
`--cert-reqs=1` --- ssl.CERT_OPTIONAL
`--cert-reqs=2` --- ssl.CERT_REQUIRED
============== ===========================
"""


Expand Down

0 comments on commit 0215f5d

Please sign in to comment.