Message232483
| Author |
lemburg |
| Recipients |
alex, benjamin.peterson, lemburg, r.david.murray |
| Date |
2014年12月11日.19:03:05 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1418324585.43.0.495161379439.issue22866@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Reopening the ticket, since I apparently missed the two important uses in the Python 2.7.9 stdlib:
urllib2.py:
-- context = ssl._create_stdlib_context(cert_reqs=ssl.CERT_REQUIRED,
httplib.py:
-- context = ssl._create_default_https_context()
So it turns out that the context functions are indeed used for all stdlib HTTP interfacing.
The ssl module itself doesn't use the hardcoded defaults (which is good), but having to write your own context function and then monkey patching this into the stdlib doesn't sound like a good solution to changing the default SSL context options, should this be needed. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年12月11日 19:03:05 | lemburg | set | recipients:
+ lemburg, benjamin.peterson, alex, r.david.murray |
| 2014年12月11日 19:03:05 | lemburg | set | messageid: <1418324585.43.0.495161379439.issue22866@psf.upfronthosting.co.za> |
| 2014年12月11日 19:03:05 | lemburg | link | issue22866 messages |
| 2014年12月11日 19:03:05 | lemburg | create |
|