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

Issue #749: Add optional SNI support for python2. #1347

Merged
merged 1 commit into from
May 4, 2013
Merged

Issue #749: Add optional SNI support for python2. #1347

merged 1 commit into from
May 4, 2013

Conversation

WhyNotHugo
Copy link
Contributor

SNI support will be enabled for python2 if ndg-httpsclient and pyopenssl are available.

SNI support will be enabled for python2 if ndg-httpsclient and pyopenssl are available.
@sigmavirus24
Copy link
Contributor

Is that seriously all that's needed to set up SNI support in it's totality?

@sigmavirus24 sigmavirus24 mentioned this pull request May 4, 2013
@Lukasa
Copy link
Member

Lukasa commented May 4, 2013

@sigmavirus24: If it is that's awesome.

@WhyNotHugo
Copy link
Contributor Author

Yes. It's merely disabled in urllib3 by default due to the additional requirements and due to the fact that ssl is way more tested than pyopenssl. That's why they've kept it in the contrib package, and needs to be manually enabled, but all the hard work is already done.
See urllib#153 for more information.

@sigmavirus24
Copy link
Contributor

Then I'm 👍 on this.

@kennethreitz
Copy link
Contributor

🍰

kennethreitz pushed a commit that referenced this pull request May 4, 2013
Issue #749: Add optional SNI support for python2.
@kennethreitz kennethreitz merged commit 50e5922 into psf:master May 4, 2013
mtigas referenced this pull request in CivOmega/civomega Feb 7, 2015
per https://www.ssllabs.com/ssltest/analyze.html?d=congress.api.sunlightfoundation.com&hideResults=on , sunlight's servers are configured such that only TLS clients that support SNI (basically having multiple SSL domain names supported within one ip address) can access the API server.

unfortunately, most (all?) installs of python 2.7.8 and earlier don't support SNI. but support can be enabled by installing pyopenssl <https://github.com/pyca/pyopenssl> & some other stuff, see:

* http://stackoverflow.com/a/18579484
* kennethreitz/requests#1347
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants