[Bug 965371] Re: HTTPS requests fail on some sites on Ubuntu 12.04

André Lopes chevelle_c_ at hotmail.com
Fri Apr 20 13:09:54 UTC 2012


Yesterday, the same happened on Emesene
https://github.com/emesene/emesene/issues/1184:

[02:02:16 ERROR e3.common.Collections] [Errno socket error] [Errno 8] ssl.c:504: EOF occurred in violation of protocol
 Traceback (most recent call last):
 File "/home/andre/emesene/emesene/e3/common/Collections.py", line 181, in fetch_metadata
 rq = self.github.get_raw(self.theme, current_ext.files[path])
 File "/home/andre/emesene/emesene/e3/common/Github.py", line 42, in get_raw
 response = urlopen(API_GITHUB_GETRAW % (self._org, repo, sha))
 File "/usr/lib/python2.7/urllib.py", line 86, in urlopen
 return opener.open(url)
 File "/usr/lib/python2.7/urllib.py", line 207, in open
 return getattr(self, name)(url)
 File "/usr/lib/python2.7/urllib.py", line 436, in open_https
 h.endheaders(data)
 File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
 self._send_output(message_body)
 File "/usr/lib/python2.7/httplib.py", line 814, in _send_output
 self.send(msg)
 File "/usr/lib/python2.7/httplib.py", line 776, in send
 self.connect()
 File "/usr/lib/python2.7/httplib.py", line 1161, in connect
 self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
 File "/usr/lib/python2.7/ssl.py", line 381, in wrap_socket
 ciphers=ciphers)
 File "/usr/lib/python2.7/ssl.py", line 143, in __init_
 self.do_handshake()
 File "/usr/lib/python2.7/ssl.py", line 305, in do_handshake
 self._sslobj.do_handshake()
 IOError: [Errno socket error] [Errno 8] _ssl.c:504: EOF occurred in violation of protocol

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssl in Ubuntu.
https://bugs.launchpad.net/bugs/965371

Title:
  HTTPS requests fail on some sites on Ubuntu 12.04

Status in OpenSSL cryptography and SSL/TLS toolkit:
  Confirmed
Status in “openssl” package in Ubuntu:
  Triaged
Status in “openssl” source package in Precise:
  Triaged
Status in “openssl” package in Debian:
  New

Bug description:
  This week, HTTPS connections from a Python script I wrote started
  giving me this error:

  urllib2.URLError: <urlopen error [Errno 8] _ssl.c:497: EOF occurred in
  violation of protocol>

  This used to work up until some three days ago and still works on
  other Ubuntu versions, but not in other Python versions on Precise. I
  was suspecting this was a bug in Python, but a guy on AskUbuntu (
  http://askubuntu.com/questions/116020/python-https-requests-urllib2
  -to-some-sites-fail-on-ubuntu-12-04-without-proxy/116059#116059 )
  found out this happens using the openssl command line tool too:

  $ openssl s_client -connect www.mediafire.com:443

  But succeeds if forcing TLS 1 with the -tls1 argument.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openssl/+bug/965371/+subscriptions




More information about the foundations-bugs mailing list