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?
Here’s the code my co-worker Dave St. Germain wrote to solve the problem: