[POC] Backport TLS SNI support from Python 3.2 #836

wants to merge 1 commit into


None yet

2 participants


Here is a backport of the patch that added SNI support to Python 3.2, but for Python 2.X.

The upstream patch: http://hg.python.org/cpython/rev/846c0e1342d0/

Known issues:

  • License compatibility for Python' s _ssl.c inclusion not checked
  • Compiling of _ssl.c is not portable (just a handful of Unix-like paths)
  • No test!

But it works with my SNI certificate, so I can use my own PyPI server through SSL now I switched to pip 1.3.

pnasrat commented Apr 21, 2013

I don't think this is really suitable for pip, I don't want to add a C extension.

You might want to see if https://github.com/pypa/ssl is interested in providing this and extending their coverage to replace stdlib ssl in 2.6 and 2.7.

@pnasrat pnasrat closed this Apr 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment