]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-31432: Clarify ssl CERT_NONE/OPTIONAL/REQUIRED docs. (GH-3530)
authorChristian Heimes <christian@python.org>
Mon, 11 Jun 2018 22:59:45 +0000 (00:59 +0200)
committerNed Deily <nad@python.org>
Mon, 11 Jun 2018 22:59:45 +0000 (18:59 -0400)
commitef24b6c54d40e7820456873a6eab6ef57d2bd0db
tree453f2603e01d16c2be2e5b280e0fc70c6061bbb5
parent4b704f29f5a0b6f6d7bd67468ed004bd3a96855d
bpo-31432: Clarify ssl CERT_NONE/OPTIONAL/REQUIRED docs. (GH-3530)

The documentation for CERT_NONE, CERT_OPTIONAL, and CERT_REQUIRED were
misleading and partly wrong. It fails to explain that OpenSSL behaves
differently in client and server mode. Also OpenSSL does validate the
cert chain everytime. With SSL_VERIFY_NONE a validation error is not
fatal in client mode and does not request a client cert in server mode.
Also discourage people from using CERT_OPTIONAL in client mode.
Doc/library/ssl.rst
Lib/test/test_ssl.py
Misc/NEWS.d/next/Documentation/2017-09-13-07-14-59.bpo-31432.yAY4Z3.rst [new file with mode: 0644]
Modules/_ssl.c