Home Download Buy Blog Forum Support

ST2 httplib does not support SSL

ST2 httplib does not support SSL

Postby jassmith87 on Tue Feb 28, 2012 12:40 am

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 :)
jassmith87
 
Posts: 2
Joined: Wed Aug 03, 2011 10:02 pm

Re: ST2 httplib does not support SSL

Postby wbond on Tue Feb 28, 2012 3:05 pm

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.
wbond
 
Posts: 523
Joined: Mon Feb 28, 2011 5:33 am

Re: ST2 httplib does not support SSL

Postby jassmith87 on Wed Feb 29, 2012 2:39 am

It would be much nicer to just have the ssl build enabled inside of sublime, or have an install time option even...
jassmith87
 
Posts: 2
Joined: Wed Aug 03, 2011 10:02 pm

Re: ST2 httplib does not support SSL

Postby wbond on Wed Feb 29, 2012 2:51 am

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


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.
wbond
 
Posts: 523
Joined: Mon Feb 28, 2011 5:33 am

Re: ST2 httplib does not support SSL

Postby noiv on Tue Jul 10, 2012 6:56 am

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.
noiv
 
Posts: 1
Joined: Tue Jul 10, 2012 6:36 am


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 3 guests