[issue2838] Verify callback for SSL

2008-05-14 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: On the client side, are you passing a ca_certs file with the self-signed certificate in it? If not, the library won't be able to validate the certificate enough to be able to see the data in it. But if you do that, you should be able to see the

[issue2838] Verify callback for SSL

2008-05-14 Thread Ruben Kerkhof
Ruben Kerkhof [EMAIL PROTECTED] added the comment: Hi Bill, When I include the server certificate in ca_certs, verification succeeds, and I can view the peer certificate dict with getpeercert(False) When I set ca_certs to none and ssl.CERT_NONE, I can still call getpeercert(True) and call

[issue2838] Verify callback for SSL

2008-05-14 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: Yep, it looks like you're on the right track. I'll close this bug. Bill On Wed, May 14, 2008 at 12:51 PM, Ruben Kerkhof [EMAIL PROTECTED] wrote: Ruben Kerkhof [EMAIL PROTECTED] added the comment: Hi Bill, When I include the server

[issue2838] Verify callback for SSL

2008-05-14 Thread Bill Janssen
Changes by Bill Janssen [EMAIL PROTECTED]: -- resolution: - works for me status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2838 __ ___

[issue2838] Verify callback for SSL

2008-05-12 Thread Ruben Kerkhof
New submission from Ruben Kerkhof [EMAIL PROTECTED]: I've been playing with the new SSL module, and so far it works great. However, when using it to connect to a host with a self signed certificate, verification fails when I specify ssl.CERT_REQUIRED (as expected). I know that I'm connecting