diff --git a/docs/source/settings.rst b/docs/source/settings.rst index 4c8e9212f..a8bb31d39 100644 --- a/docs/source/settings.rst +++ b/docs/source/settings.rst @@ -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`` diff --git a/gunicorn/config.py b/gunicorn/config.py index bc24b7000..c27775fc2 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -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 + ============== =========================== """