Sublime Forum

ST2 httplib does not support SSL

#1

I know this is a somewhat known issue, but it is preventing me from implementing a nice clean bzr plugin for sublime. Bzrlib uses httplib to do ssl negotiation and there is no real easy or obvious way to work around the issue. Is it possible to get a version of sublime with SSL enabled for linux? For reference, I have already tried moving the python26.zip file out of the install dir and symlinking in my system python2.6. For some reason it still uses a version of httplib without SSL support. I am not sure why or how.

Cheers :smile:

0 Likes

#2

I was able to get the ssl module compiled for the SFTP plugin and FTPS connections, however just having the SSL module doesn’t recompile httplib with SSL support, so the HTTPS classes are still not available.

You can feel free to grab the ssl.so files from the SFTP plugin and the loader code in SFTP.py, but again I think that will only get you part way.

0 Likes

#3

It would be much nicer to just have the ssl build enabled inside of sublime, or have an install time option even…

0 Likes

#4

From my understanding the reason Jon does not do that is because there are a handful of different versions of OpenSSL floating around. I presume there is no good way to build the _ssl.so against multiple versions in a sane build process, especially since I don’t think you can have multiple versions of libssl installed at the same time. I had to fire up multiple different virtual machines and build the ssl extension on all of them and then copy them all back and write some custom import code to get it all to work.

0 Likes

#5

I don’t know SSL, only what’s for. But seeing it working on Windows with ST2 and using it on Linux with Google App Engine (Python), which supports https on a lot of flavors without compilation, makes me thinking a solution should exist.

0 Likes