Using paired certificates with urllib2

Posted by Ned Batchelder on Stack Overflow See other posts from Stack Overflow or by Ned Batchelder
Published on 2009-12-09T16:27:21Z Indexed on 2010/03/24 1:43 UTC
Read the original article Hit count: 662

Filed under:
|
|
|

I need to create a secure channel between my server and a remote web service. I'll be using HTTPS with a client certificate. I'll also need to validate the certificate presented by the remote service.

  1. How can I use my own client certificate with urllib2?

  2. What will I need to do in my code to ensure that the remote certificate is correct?

© Stack Overflow or respective owner

Related posts about python

Related posts about urllib2