[CentOS] Calibre installation fails on C7

Wed Dec 23 15:14:48 UTC 2015
Jonathan Billings <billings at negate.org>

On Wed, Dec 23, 2015 at 09:37:37AM -0500, Fred Smith wrote:
> wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | python -c "import sys; main=lambda x,y:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main('~/calibre-bin', True)"
> 2015-12-22 07:44:40 URL:https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py [25887/25887] -> "-" [1]
> Installing to /home/fredex/calibre-bin/calibre
> Downloading tarball signature securely...
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "<string>", line 670, in main
>   File "<string>", line 655, in run_installer
>   File "<string>", line 627, in download_and_extract
>   File "<string>", line 619, in get_tarball_info
>   File "<string>", line 578, in get_https_resource_securely
>   File "<string>", line 487, in __init__
>   File "/usr/lib64/python2.7/httplib.py", line 1182, in __init__
>     context.load_cert_chain(cert_file, key_file)
> ssl.SSLError: [SSL] PEM lib (_ssl.c:2757)

I skimmed that python script, and it seems to be making an SSL
connection to https://code.calibre-ebook.com/ which appears to have a
self-signed certificate.  It looks like it includes the cert file, but
python 2.7 doesn't appear to like you just using
httplib.HTTPSConnection without a key file too, which isn't included.

I suspect this must be a bug in the upstream code.

Jonathan Billings <billings at negate.org>