Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Improve SSL certificate error message on wrong certificate #25

Open
spaetz opened this Issue · 1 comment

2 participants

@spaetz
Owner

After reading the online documentation Sebastian has just announced, I
wanted to try the sslcacertfile option [1]

Two things:

1) It works fine, however, when specifying a wrong certificate gives
that kind of warning:

| WARNING: Could not connect via SSL to host 'imap.sfr.fr' and
| non-standard ssl port 993 configured. Make sure you connect to the
| correct port.

@samlt

to continue on this one, if this is the right certificate but it is expired, the error message is:

| ***** Processing account sltosis
| Copying folder structure from IMAP to Maildir
| Establishing connection to imap.sltosis.org:993.
| WARNING: Error occured attempting to sync account 'sltosis':
| Traceback (most recent call last):
| File "/usr/lib/pymodules/python2.7/offlineimap/accounts.py", line 177, in syncrunner
| self.sync()
| File "/usr/lib/pymodules/python2.7/offlineimap/accounts.py", line 235, in sync
| remoterepos.syncfoldersto(localrepos, [statusrepos])
| File "/usr/lib/pymodules/python2.7/offlineimap/repository/Base.py", line 124, in syncfoldersto
| srcfolders = src.getfolders()
| File "/usr/lib/pymodules/python2.7/offlineimap/repository/IMAP.py", line 276, in getfolders
| imapobj = self.imapserver.acquireconnection()
| File "/usr/lib/pymodules/python2.7/offlineimap/imapserver.py", line 323, in acquireconnection
| elif isinstance(e, socket.error) and e.args[0] == errno.ECONNREFUSED:
| NameError: global name 'errno' is not defined
|
| ***** Finished processing account sltosis

As you see, "same" problem, different error.

HTH

samlt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.