Message118178
Here is the API addition I would suggest for the http.client module:
Add two new keyword arguments `context` and `check_hostname` to HTTPSConnection; `context` would allow to pass a SSLContext instance for certificate checking and other options (default None, meaning no checking); `check_hostname` would specify whether to check the hostname against the URL (default to check only if context is present and context.verify_mode != CERT_NONE).
Here is the API addition I would suggest for the urllib.request module:
- Add constructor arguments `context` and `check_hostname` to HTTPSHandler. They will be passed to the underlying HTTPSConnection.
- Add `ssl_ca_file` and `ssl_ca_path` arguments to the high-level function urlopen(); if at least one of them is present, a custom opener with a custom HTTPSHandler will be created, mandating the checking of server certificates |
|
Date |
User |
Action |
Args |
2010-10-08 11:03:42 | pitrou | set | recipients:
+ pitrou, zooko, janssen, orsenthil, giampaolo.rodola, vila, heikki, ahasenack, kiilerix, debatem1, jsamuel, devin, asdfasdfasdfasdfasdfasdfasdf, Ryan.Tucker |
2010-10-08 11:03:42 | pitrou | set | messageid: <1286535822.66.0.507690191014.issue9003@psf.upfronthosting.co.za> |
2010-10-08 11:03:36 | pitrou | link | issue9003 messages |
2010-10-08 11:03:36 | pitrou | create | |
|