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

SSL validation fails on servers with SNI #58

Closed
WhyNotHugo opened this issue May 2, 2013 · 3 comments
Closed

SSL validation fails on servers with SNI #58

WhyNotHugo opened this issue May 2, 2013 · 3 comments

Comments

@WhyNotHugo
Copy link
Contributor

When more than one SSL/TLS domain is hosted on a same IPv4 host, SNI support is required. It is not unusual to host several domains on a single host.

Without SNI support, there are only two ways to host several domains on a single host:

  • Purchase a large IPv4 block, and use one-per-domain (extremely expensive).
  • Make sure all your clients have IPv6 (not all location where I roam have IPv6 connectivity).

In short, SSL/TSL support is mostly broken as-is.

@geier
Copy link
Owner

geier commented May 2, 2013

As far as I know, SNI is only supported by urllib3 on python3.2+, so there is no easy fix for this. Sorry if this makes pycarddav useless for you.

@WhyNotHugo
Copy link
Contributor Author

Indeed. I'll close this issue; it's an upstream issue. I'll take my problem over to them. ;) I don't think nothing needs to be done here.

Also, as a side not, it doesn't make pycarddav useless for me; I'm SSH-port-forwaring into the server and using plain old HTTP though ssh. :)

@WhyNotHugo
Copy link
Contributor Author

This has been fixed upstream (on python-requests). The latest git revision contains optional support for SNI. It's automatically enabled if the dependencies pyopenssl and ndg-httpsclient are installed.

I'm leaving this comment here informatively and for anyone else who comes across the same issue.

@geier geier mentioned this issue Feb 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants