Ssl error with offlineimap version 6.6.1 (debian package)

Leandro Noferini lnoferin at cybervalley.org
Sat Feb 6 20:44:37 GMT 2016


Nicolas Sebrecht <nicolas.s-dev at laposte.net> writes:


[...]

>> ERROR: Unknown SSL protocol connecting to host 'bbs.cybervalley.org'
>> for repository 'RemotoBBs'. OpenSSL responded:
>> [SSL: SSL_NEGATIVE_LENGTH] dh key too small (_ssl.c:590)
>
> <...>
>
>> What could be the error?
>
> SSL defaults have change. Check your configuration, especialy
> ssl_version and tls_level:
>
>   https://github.com/OfflineIMAP/offlineimap/blob/master/offlineimap.conf#L681
>
> OfflineIMAP must be configured to enable a protocol that the server
> provides.

I tried many configuration options without any luck!

> Also, you might like to check the output of --info.

leandro at tricheco:~$ offlineimap -a BBs --info
OfflineIMAP 6.6.1
  Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
Remote repository 'RemotoBBs': type 'IMAP'
Host: bbs.cybervalley.org Port: None SSL: True
Establishing connection to bbs.cybervalley.org:993
Failed to connect. Reason Unknown SSL protocol connecting to host 'bbs.cybervalley.org' for repository 'RemotoBBs'. OpenSSL responded:
[SSL: SSL_NEGATIVE_LENGTH] dh key too small (_ssl.c:590)
Establishing connection to bbs.cybervalley.org:993
Traceback (most recent call last):
  File "/usr/bin/offlineimap", line 23, in <module>
    oi.run()
  File "/usr/share/offlineimap/offlineimap/init.py", line 52, in run
    self.__serverdiagnostics(options)
  File "/usr/share/offlineimap/offlineimap/init.py", line 429, in __serverdiagnostics
    account.serverdiagnostics()
  File "/usr/share/offlineimap/offlineimap/accounts.py", line 197, in serverdiagnostics
    self.ui.serverdiagnostics(remote_repo, 'Remote')
  File "/usr/share/offlineimap/offlineimap/ui/UIBase.py", line 461, in serverdiagnostics
    folders = repository.getfolders()
  File "/usr/share/offlineimap/offlineimap/repository/IMAP.py", line 384, in getfolders
    imapobj = self.imapserver.acquireconnection()
  File "/usr/share/offlineimap/offlineimap/imapserver.py", line 483, in acquireconnection
    tls_level=self.tlslevel,
  File "/usr/share/offlineimap/offlineimap/imaplibutil.py", line 186, in __init__
    super(WrappedIMAP4_SSL, self).__init__(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/imaplib2.py", line 2138, in __init__
    IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout, debug_buf_lvl)
  File "/usr/lib/python2.7/dist-packages/imaplib2.py", line 357, in __init__
    self.open(host, port)
  File "/usr/share/offlineimap/offlineimap/imaplibutil.py", line 194, in open
    super(WrappedIMAP4_SSL, self).open(host, port)
  File "/usr/lib/python2.7/dist-packages/imaplib2.py", line 2151, in open
    self.ssl_wrap_socket()
  File "/usr/lib/python2.7/dist-packages/imaplib2.py", line 522, in ssl_wrap_socket
    self.sock = ssl.wrap_socket(self.sock, self.keyfile, self.certfile, ca_certs=self.ca_certs, cert_reqs=cert_reqs, ssl_version=ssl_version)
  File "/usr/lib/python2.7/ssl.py", line 911, in wrap_socket
    ciphers=ciphers)
  File "/usr/lib/python2.7/ssl.py", line 579, in __init__
    self.do_handshake()
  File "/usr/lib/python2.7/ssl.py", line 808, in do_handshake
    self._sslobj.do_handshake()
offlineimap.error.OfflineImapError: Unknown SSL protocol connecting to host 'bbs.cybervalley.org' for repository 'RemotoBBs'. OpenSSL responded:
[SSL: SSL_NEGATIVE_LENGTH] dh key too small (_ssl.c:590)

-- 
leandro
Scegli sempre un'idea che ti permetta poi di cambiarla
http://6xukrlqedfabdjrb.onion
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 464 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20160206/4aea32e9/attachment-0003.sig>


More information about the OfflineIMAP-project mailing list