CertificateValidationUnsupported using oauth2/httplib2 on Python 2.4
At a first look, python-ouath2 seemed to have many problems with Python 2.4, so I managed to get a patch on that by Googling. But I'm still getting an error from httplib2 as follows:
CertificateValidationUnsupported: SSL certificate validation is not supported without the ssl module installed. To avoid this error, install the ssl module, or explicity disable validation.
I've done a lot of research on installing that ssl module but I can't find anything useful.
I'm using a web host running Red Hat Enterprise Linux 5 and I only have the SSH access to my account but with no further writing privileges beyond my folders. Tryied to install SSL from easy_install but it asked for another lib called开发者_运维问答 libssl-dev and I couldn't manage to install it without the "apt-get" command which I can't use.
Thank you so much.
For Python 2.3-2.5, you need to install the ssl module from PyPI. If you have setuptools installed, you should be able to just do easy_install ssl
. The documentation for the library is the Python ssl docs, there are no separate docs for the external version.
精彩评论