I'm using httplib2 to make a request from my server to another web service. We want to use mutual certificate authentication. I see how to use a certificate for the outgoing connection (h.set_certificate
), but how do I check the certificate used by the answering server?
This ticket seems to indicate that httplib2 doesn't do it itself, and has only vague suggestions about where to look.
Is it possible? Am I going to have to hack at a lower level?
perhaps things have changed since your question, I am able to do mutual authentication with httplib2 v0.7, as below:
Note the
domain=''
argument, this is the only way I could make it workHere's the code my co-worker Dave St. Germain wrote to solve the problem: