SSL routines:SSL23_GET_SERVER_HELLO:unsupported protocol

Bug #966058 reported by John Lenton on 2012-03-27
This bug affects 5 people
Affects Status Importance Assigned to Milestone
openssl (Ubuntu)

Bug Description

When trying to access some sites over https, both python and perl in precise fall over.
Here's what happens with libwww-perl's GET:
$ GET "" | head -n1
<!DOCTYPE html>
$ GET ",thumbnail_small_url,title,description&limit=100&page=1"
Can't connect to

LWP::Protocol::https::Socket: SSL connect attempt failed with unknown errorerror:14077102:SSL routines:SSL23_GET_SERVER_HELLO:unsupported protocol at /usr/share/perl5/LWP/Protocol/ line 51.

Python throws essentially the same error. These work in lucid, and were working in precise, until very recently.

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
graingert (tagrain) wrote :

$ GET ""
Can't connect to
LWP::-Protocol::https::-Socket: SSL connect attempt failed with unknown errorerror:14077102:-SSL routines:-SSL23_GET_SERVER_HELLO:unsupported protocol at /usr/share/perl5/LWP/Protocol/ line 51.

is this a duplicate of bug 861137

affects: ubuntu → openssl (Ubuntu)
graingert (tagrain) wrote :

ubuntu 12.04

I don't get this issue in wget, curl or openssl

But I do get this issue in python and GET

import requests"", data={})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/requests/", line 84, in post
    return request('post', url, data=data, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/", line 39, in request
    return s.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/", line 203, in request
  File "/usr/local/lib/python2.7/dist-packages/requests/", line 557, in send
    raise SSLError(e)
requests.exceptions.SSLError: [Errno 1] _ssl.c:504: error:14077102:SSL routines:SSL23_GET_SERVER_HELLO:unsupported protocol

Shane Tomlinson (stomlinson-r) wrote :

I am attaching two files to add more information to this bug. I used ssldump to capture the handshake between the client machine and to see where there were differences. I am using Ubuntu 12.04 32bit.

The file named curl_capture.txt is captured from a curl
The file named GET_capture.txt is captured from GET

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openssl (Ubuntu):
status: New → Confirmed
Philip Muškovac (yofel) on 2012-03-30
tags: added: precise regression-release
Cerin (chrisspen) wrote :

I'm not sure if it's related, but I get the similar error:

urllib2.URLError: <urlopen error [Errno 1] _ssl.c:504: error:140773E8:SSL routines:SSL23_GET_SERVER_HELLO:reason(1000)>

My case may be related be related to, but the suggested fix of using a custom opener to switch to SSLv3 only results in the error httplib.BadStatusLine: ''.

I'm using Python 2.7.3 on Ubuntu 12.04.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.