well, the winner is (almost) httplib2 v0.7. Starting with this version, it supports SSL certificate authentication. Here is a sample code
import httplib2 client = httplib2.Http(ca_certs='ca.crt') client.add_certificate(key='client_private_key.pem', cert='cert_client.pem', domain='') headers, resp = client.request(query)
Pay attention to the parameter domain=''
, otherwise it does not work for me.
PS. Unfortunately, this simple solution does not work for me, since I forgot to mention an additional requirement - with installing RPM for RHEL 5.7 and Python 2.6.
davka source share