diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py index be557e6..fb533a0 100644 --- a/offlineimap/imapserver.py +++ b/offlineimap/imapserver.py @@ -95,6 +95,9 @@ class IMAPServer: self.__verifycert = None # Disable cert verification. # This way of working sucks hard... self.fingerprint = repos.get_ssl_fingerprint() + if self.fingerprint is not None: + self.__verifycert = None # if we have a cert fingerprint + # we do not require verfication via CA self.tlslevel = repos.gettlslevel() self.sslversion = repos.getsslversion() self.starttls = repos.getstarttls()