[Pkg-openssl-devel] OpenSSL bug? (error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number)
W. Martin Borgert
debacle at debian.org
Fri Feb 22 20:39:49 UTC 2013
Hi,
I have a problem with wheezy, but not with squeeze.
I assume, it is an OpenSSL issue, but I'm not sure.
Maybe you could help to track it down?
Situation: Debian client, MSexChange server, IMAP SSL
I'm using Python to test this, just because the original problem is,
that getmail4 (which is written in Python) doesn't work for me on
wheezy.
On squeeze, using 0.9.8o-4squeeze14:
$ python2.6 (or python3.1)
>>> import imaplib
>>> imaplib.IMAP4_SSL("192.168.1.1")
<imaplib.IMAP4_SSL object at 0xb7244c2c>
>>>
On wheezy, using 1.0.1c-4 or 1.0.1e-1:
$ python2.7 (or python3.2)
>>> import imaplib
>>> imaplib.IMAP4_SSL("192.168.1.1")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/imaplib.py", line 1148, in __init__
IMAP4.__init__(self, host, port)
File "/usr/lib/python2.7/imaplib.py", line 192, in __init__
typ, dat = self.capability()
File "/usr/lib/python2.7/imaplib.py", line 361, in capability
typ, dat = self._simple_command(name)
File "/usr/lib/python2.7/imaplib.py", line 1070, in _simple_command
return self._command_complete(name, self._command(name, *args))
File "/usr/lib/python2.7/imaplib.py", line 897, in _command_complete
typ, data = self._get_tagged_response(tag)
File "/usr/lib/python2.7/imaplib.py", line 999, in _get_tagged_response
self._get_response()
File "/usr/lib/python2.7/imaplib.py", line 916, in _get_response
resp = self._get_line()
File "/usr/lib/python2.7/imaplib.py", line 1009, in _get_line
line = self.readline()
File "/usr/lib/python2.7/imaplib.py", line 1171, in readline
return self.file.readline()
File "/usr/lib/python2.7/socket.py", line 447, in readline
data = self._sock.recv(self._rbufsize)
File "/usr/lib/python2.7/ssl.py", line 241, in recv
return self.read(buflen)
File "/usr/lib/python2.7/ssl.py", line 160, in read
return self._sslobj.read(len)
ssl.SSLError: [Errno 1] _ssl.c:1359: error:1408F10B:SSL
routines:SSL3_GET_RECORD:wrong version number
So I compiled and installed OpenSSL from squeeze on wheezy, recompiled
Python 2.7 against that version, and now it works on wheezy as on squeeze.
Is this an OpenSSL bug? If yes, it probably should be fixed for wheezy.
If not, what's going on? Please CC me on replies.
Many thanks in advance!
More information about the Pkg-openssl-devel
mailing list