Skip to content

Commit

Permalink
Merge pull request #2634 from YingjieQiao/docs/cert_reqs
Browse files Browse the repository at this point in the history
docs: add examples for cert-reqs
  • Loading branch information
benoitc committed May 11, 2023
2 parents f955a0c + 0215f5d commit f859de4
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
Expand Up @@ -554,6 +554,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
Expand Up @@ -2149,6 +2149,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 f859de4

Please sign in to comment.