HTTPS/SSL support?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
zeezoo
DD-WRT Novice


Joined: 23 Oct 2008
Posts: 19

PostPosted: Mon Nov 09, 2015 7:55    Post subject: HTTPS/SSL support? Reply with quote
Hello everybody,

I have DIR-890L with the latest beta firmware installed:

Code:
Firmware: DD-WRT v3.0-r28072 std (11/02/15)


And Optware K3-AC-ARM from that link:

Code:
http://dd-wrt.com/wiki/index.php/Optware_on_K3-AC-ARM


My main issue is running couchpotato (v e6fa8b8b) with python 2.7.
Everything seems to work almost fine, with exception for few settings that are not visible (like quality setting) but the main issue is HTTPS/SSL connection as most of torrent-related websites are using it and CP it's barely finding any releases.

The same CP is working fine on my WD Mybookworld White Light with python 2.6 but the amount of RAM and CPU on that dev makes CP work very slow.

It seems like python is not compiled properly or maybe whole router OS is somehow broken. I know it's in beta stage but maybe that's something we can work on.

Couchpotato is not launching on python 3.5 at all - I think it's not prepared to work with that version, so I am unable to check if that works now.

The errors I am receiving from log are:

Code:
<module>
    import ssl
  File "/opt/usr/lib/python2.7/ssl.py", line 97, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: Error relocating /opt/usr/lib/python2.7/lib-dynload/_ssl.so: EC_KEY_free: symbol not found


Code:

SSLError: Can't connect to HTTPS URL because the SSL module is not available


Even if I try to clone things from GIT I have to use git:// instead of https:// as I'm getting this:

Code:
fatal: unable to find remote helper for 'https'


Also wget is unable to fetch anything via secure connection:

Code:
wget: error getting response: Address family not supported by protocol
Sponsor
Legomaniac
DD-WRT Novice


Joined: 12 Mar 2009
Posts: 6

PostPosted: Mon Nov 30, 2015 5:41    Post subject: Reply with quote
I have run into this problem as well. I tried going down the path of manually installing Python OpenSSL (https://pypi.python.org/pypi/pyOpenSSL), however when I got to the cffi dependency, that is where things stopped.

root@Digiport:/jffs/pypi_packages/cffi-1.3.0# python setup.py install
unable to execute 'arm-openwrt-linux-muslgnueabi-gcc': No such file or directory
unable to execute 'arm-openwrt-linux-muslgnueabi-gcc': No such file or directory

No working compiler found, or bogus compiler options
passed to the compiler from Python's distutils module.
See the error messages above.
(If they are about -mno-fused-madd and you are on OS/X 10.8,
see http://stackoverflow.com/questions/22313407/ .)

Unfortunately, this is about where troubleshooting stops for me as I am very not certain on how to get this compiler or if I should really be attempting to compile on my active router.

However, if it helps, I was able to get curl to work with https addresses. I simply needed to use opkg to install ca-certificates, then when running curl, using the argument --capath /opt/etc/ssl/certs/

I am now able to at least make requests to https addresses, I still can't "import ssl" in Python, however this workaround with curl enables me to have calls to https API's. I don't think this will help you zeezoo, as you are trying to get a pre-built python application to run, however hopefully it will help someone else who Googles up this post as I did.
qbone
DD-WRT Novice


Joined: 13 Feb 2018
Posts: 6

PostPosted: Tue Feb 13, 2018 14:49    Post subject: Reply with quote
I know this is an old post, but in case anyone stumble upon this problem, getting the error code:
Code:
fatal: unable to find remote helper for 'https'

Then it might be because you are missing "git-http" package.
On entware you can install it by typing:
Code:
opkg install git-http
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum