[Pkg-openssl-devel] Bug#742152: _ssl.c:1415: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac

Sascha Schmidt realriot at realriot.de
Wed Mar 19 20:39:37 UTC 2014


Package: openssl
Version: 1.0.1e-2+deb7u4
Severity: important

I was developing a webservice client in python. After a while I hit the situation where I had to
transfer files from a https webserver using a supplied 3rd party sdk.

After seconds of transferring data my app crashes with an error which displays the following informations:
[...]
  File "/usr/lib/python2.7/httplib.py", line 561, in read
  File "/usr/lib/python2.7/httplib.py", line 561, in read
    s = self.fp.read(amt)
    s = self.fp.read(amt)
  File "/usr/lib/python2.7/socket.py", line 380, in read
  File "/usr/lib/python2.7/socket.py", line 380, in read
    data = self._sock.recv(left)
  File "/usr/lib/python2.7/ssl.py", line 241, in recv
    data = self._sock.recv(left)
  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)
SSLError: [Errno 1] _ssl.c:1415: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
    return self.read(buflen)
  File "/usr/lib/python2.7/ssl.py", line 160, in read
    return self._sslobj.read(len)
SSLError: [Errno 1] _ssl.c:1415: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac

[...]
  File "/usr/lib/python2.7/httplib.py", line 561, in read
    s = self.fp.read(amt)
  File "/usr/lib/python2.7/socket.py", line 380, in read
    data = self._sock.recv(left)
  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)
SSLError: [Errno 1] _ssl.c:1415: error:1408F081:SSL routines:SSL3_GET_RECORD:block cipher pad is wrong

I googled around and often noticed the problem/bug reports for openssl.
There's no fix I can provide but I've read a lot that is seems to be a problem with the openssl (python?) package...

Is there something I can do to investigate this problem?

Greets
Sascha

-- System Information:
Debian Release: 7.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-0.bpo.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages openssl depends on:
ii  libc6        2.13-38+deb7u1
ii  libssl1.0.0  1.0.1e-2+deb7u4
ii  zlib1g       1:1.2.7.dfsg-13

openssl recommends no packages.

Versions of packages openssl suggests:
ii  ca-certificates  20130119

-- no debconf information



More information about the Pkg-openssl-devel mailing list