M
McCann, Brian
Hi all. I'm trying to connect to an HTTPS server and fetch a page, and
I can get that working fine by doing the following:
However, I'm trying to verify that the certificate on the server has the
right CN on it, to validate that the site really is who it's supposed to
be. However, for the life of me I can't figure this out. I've read
through the documentation on M2Crypto (which is cryptic itself), and I
know I'm still really stupid when it comes to Python, but I figured this
would be a more obvious thing to do.
Does anyone know how to do this, or suggest another package to use?
Thanks!
--Brian
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Brian McCann
K12USA.com, Cool Tools for Schools
1-877-225-0100
(e-mail address removed) <blocked::mailto:[email protected]>
http://www.k12usa.com <http://www.k12usa.com/>
I can get that working fine by doing the following:
However, I'm trying to verify that the certificate on the server has the
right CN on it, to validate that the site really is who it's supposed to
be. However, for the life of me I can't figure this out. I've read
through the documentation on M2Crypto (which is cryptic itself), and I
know I'm still really stupid when it comes to Python, but I figured this
would be a more obvious thing to do.
Does anyone know how to do this, or suggest another package to use?
Thanks!
--Brian
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Brian McCann
K12USA.com, Cool Tools for Schools
1-877-225-0100
(e-mail address removed) <blocked::mailto:[email protected]>
http://www.k12usa.com <http://www.k12usa.com/>