[issue19689] ssl.create_default_context()
Antoine Pitrou
report at bugs.python.org
Fri Nov 22 18:29:54 CET 2013
Antoine Pitrou added the comment:
Ok, so I still have a couple of issues with the proposed API:
- if its purpose is to create a *default* context, create_default_context() shouldn't have that many arguments. The nice thing with contexts is that you can change their parameters later... So basically the function signature should be:
create_default_context(purpose, *, cafile, cadata, capath)
Also, the default for "purpose" should probably be serverAuth.
- "PurposeEKU" is cryptic, please simply "Purpose" or "CertPurpose".
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19689>
_______________________________________
More information about the Python-bugs-list
mailing list