View Single Post
Old 01-14-2015, 10:19 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,365
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No there is no problem with ssl verify. The change is because calibre 2.16 moved to python 2.7.9

And python 2.7.9 actually verifies SSL certificates (older versions of python did not).

I'm not familiar with the pocket recipe, but if for some reason the cerificates pocket.com uses are not verifiable, then you can monkeypatch the python ssl module to disable all ssl verification, like this:

import ssl
ssl.create_default_context = ssl._create_unverified_context

stick that near the top of the recipe and you will get back the old python 2.7.8 behavior of not verifying ssl certificates.

Of course, this is not a good idea and the proper fix is to to figure out why the ssl certificates are not verifiable in the first place, but...
kovidgoyal is offline   Reply With Quote