Bug 1170648 - wget fails when server only supports TLSv1.1+
Summary: wget fails when server only supports TLSv1.1+
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: wget
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Hozza
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-04 14:32 UTC by Frederik Holden
Modified: 2015-01-06 06:05 UTC (History)
3 users (show)

Fixed In Version: wget-1.16.1-1.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-15 04:32:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Frederik Holden 2014-12-04 14:32:37 UTC
Description of problem:
If running a web server that only supports TLSv1.1 and TLSv1.2 (i.e. no TLSv1 or lower), wget fails to connect. When running "wget https://example.org/" (where example.org only supports TLSv1.1 and TLSv1.2), wget fails with the message "Unable to establish SSL connection." If you add "--secure-protocol=TLSv1_1" or "--secure-protocol=TLSv1_2", it works as it should. "--secure-protocol=auto" also fails.

Version-Release number of selected component (if applicable):
wget-1.16-3.fc20.x86_64

How reproducible:
Every time.

Steps to Reproduce:
1. Set up a web server that only supports TLSv1.1 and/or TLSv1.2.
2. Attempt to connect to it using wget.
3. Witness the error message.

Actual results:
"Unable to establish SSL connection."

Expected results:
Connection successful.

Additional info:
You can set up a server like this easily by using openssl s_server with the arguments "-no_ssl2 -no_ssl3 -no_tls1".

Comment 1 Štefan Gurský 2014-12-05 00:48:31 UTC
This is probably related: in F21 if one sets Crypto Policy (https://fedoraproject.org/wiki/Changes/CryptoPolicy) to "FUTURE" then wget fails with the same message. For example:

wget https://www.torproject.org/dist/torbrowser/4.0.2/tor-browser-linux64-4.0.2_en-US.tar.xz.asc

results in:

OpenSSL: error:140830B5:SSL routines:SSL3_CLIENT_HELLO:no ciphers available
Unable to establish SSL connection.

Comment 2 Tomáš Hozza 2014-12-05 08:57:41 UTC
(In reply to Štefan Gurský from comment #1)
> This is probably related: in F21 if one sets Crypto Policy
> (https://fedoraproject.org/wiki/Changes/CryptoPolicy) to "FUTURE" then wget
> fails with the same message. For example:
> 
> wget
> https://www.torproject.org/dist/torbrowser/4.0.2/tor-browser-linux64-4.0.
> 2_en-US.tar.xz.asc
> 
> results in:
> 
> OpenSSL: error:140830B5:SSL routines:SSL3_CLIENT_HELLO:no ciphers available
> Unable to establish SSL connection.

I don't think this is the case, since the bug is reported against F20 and the Crypto Policy Feature is aimed on F21.

There seems to be a regression in 1.16 regarding openSSL. It is already discussed on upstream mailing list. Once they agree on the fix, I'll look at it in Fedora.

Comment 3 Fedora Update System 2014-12-11 13:42:36 UTC
wget-1.16.1-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/wget-1.16.1-1.fc21

Comment 4 Fedora Update System 2014-12-11 13:43:16 UTC
wget-1.16.1-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/wget-1.16.1-1.fc20

Comment 5 Fedora Update System 2014-12-11 13:43:59 UTC
wget-1.16.1-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/wget-1.16.1-1.fc19

Comment 6 Fedora Update System 2014-12-13 09:38:01 UTC
Package wget-1.16.1-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing wget-1.16.1-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-16811/wget-1.16.1-1.fc19
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2014-12-15 04:32:26 UTC
wget-1.16.1-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2014-12-17 11:08:24 UTC
wget-1.16.1-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/wget-1.16.1-2.fc20

Comment 9 Fedora Update System 2014-12-20 08:47:23 UTC
wget-1.16.1-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2015-01-06 06:05:45 UTC
wget-1.16.1-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.