Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urllib should support SSL contexts #53051

Closed
pitrou opened this issue May 24, 2010 · 5 comments
Closed

urllib should support SSL contexts #53051

pitrou opened this issue May 24, 2010 · 5 comments
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@pitrou
Copy link
Member

pitrou commented May 24, 2010

BPO 8805
Nosy @terryjreedy, @orsenthil, @pitrou, @giampaolo

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2010-12-01.10:37:06.723>
created_at = <Date 2010-05-24.16:04:01.960>
labels = ['type-feature', 'library']
title = 'urllib should support SSL contexts'
updated_at = <Date 2010-12-01.10:37:06.722>
user = 'https://github.com/pitrou'

bugs.python.org fields:

activity = <Date 2010-12-01.10:37:06.722>
actor = 'pitrou'
assignee = 'none'
closed = True
closed_date = <Date 2010-12-01.10:37:06.723>
closer = 'pitrou'
components = ['Library (Lib)']
creation = <Date 2010-05-24.16:04:01.960>
creator = 'pitrou'
dependencies = []
files = []
hgrepos = []
issue_num = 8805
keywords = []
message_count = 5.0
messages = ['106363', '106365', '120171', '120187', '122989']
nosy_count = 5.0
nosy_names = ['terry.reedy', 'janssen', 'orsenthil', 'pitrou', 'giampaolo.rodola']
pr_nums = []
priority = 'normal'
resolution = 'rejected'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue8805'
versions = ['Python 3.2']

@pitrou
Copy link
Member Author

pitrou commented May 24, 2010

3.2 introduces SSL contexts, which allow bundling SSL configuration options, certificates and private keys into a single (potentially long-lived) structure.
http://docs.python.org/dev/py3k/library/http.client.html

urllib.request.*URLOpener should allow passing an SSL context object, if not already possible.

(I hope you don't mind the multiple similar issues, but I think one separate issue per stdlib module is more manageable)

@pitrou pitrou added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels May 24, 2010
@pitrou
Copy link
Member Author

pitrou commented May 24, 2010

Actual URL for SSL contexts (sorry):
http://docs.python.org/dev/py3k/library/ssl.html#ssl.SSLContext

@terryjreedy
Copy link
Member

In bpo-10050 you suggest deprecating *URLopener (not *Opener, the misspelling also in fix_urllib.py bpo-10286) and other stuff. Which do you actually prefer, upgrade or degrade?

@pitrou
Copy link
Member Author

pitrou commented Nov 1, 2010

Degrade; this old implementation (urllib vs urllib2) shoud be phased out IMO. This issue shows that I was myself fooled by the urllib.request documentation.

@pitrou
Copy link
Member Author

pitrou commented Dec 1, 2010

HTTPSHandler now allows to pass an SSLContext and the old API should be buried in the ground, closing.

@pitrou pitrou closed this as completed Dec 1, 2010
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants