Nick Coghlan added the comment:

+1 for directing all programmatic configuration through SSLContext

However, implicitly verifying certificates for protocols other than HTTPS needs 
to be contingent on a properly designed approach to configuration that leaves 
informed users in full control of the behaviour of their systems - while I'm 
fully supportive of secure-by-default behaviour to protect unaware users, it's 
also the case that most other protocols haven't had the forcing function of web 
browser behaviour encouraging them to improve their certificate handling, and 
even that's still in a tragically bad state once you get away from the public 
web.

The file based scheme in PEP 493, 
https://www.python.org/dev/peps/pep-0493/#backporting-pep-476-to-earlier-python-versions,
 was deliberately written to be potentially suitable for expansion to other 
protocols, but actually using it for that purpose would require the definition 
of a new feature PEP targeting 3.7 (which may then potentially be pitched for 
backporting to earlier versions as a subsequent proposal).

----------
nosy: +ncoghlan

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28022>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to