Message120108
imaplib should provide a means to validate a remote server ssl certificate(s).
So currently imaplib allows you to do the following:
import imaplib
conn = imaplib.IMAP4_SSL("imap.gmail.com")
#the following should fail
conn = imaplib.IMAP4_SSL("74.125.39.109")
conn = imaplib.IMAP4_SSL("i.broke.the.internet.and.all.i.got.was.this.t-shirt.phreedom.org",
443)
conn = imaplib.IMAP4_SSL("insert_self_signed_imap_server_here")
However, only the first call("imap.gmail.com") should *NOT* result in an error being raised (if the certificate is being checked :) ).
I wasn't able to find a way to get imaplib.IMAP4_SSL to take the certificate for the remote server without wanting a private cert (which wasn't / isn't desired ).
If an option is added / method added that takes in an optional parameter to validate the remote IMAP's ssl certificate has been signed by a trusted certificate authority this would be a good solution. |
|
Date |
User |
Action |
Args |
2010-11-01 03:55:33 | asdfasdfasdfasdfasdfasdfasdf | set | recipients:
+ asdfasdfasdfasdfasdfasdfasdf |
2010-11-01 03:55:33 | asdfasdfasdfasdfasdfasdfasdf | set | messageid: <1288583733.85.0.123923377362.issue10274@psf.upfronthosting.co.za> |
2010-11-01 03:55:32 | asdfasdfasdfasdfasdfasdfasdf | link | issue10274 messages |
2010-11-01 03:55:31 | asdfasdfasdfasdfasdfasdfasdf | create | |
|