wget in 12.04 does not support SNI

Bug #1580700 reported by Mike Weiss on 2016-05-11
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wget (Ubuntu)
Marc Deslauriers

Bug Description

wget in Ubuntu 12.04 doesn't have support for TLS Server Name Indication, which makes it incompatible with certain sites, includes sites that use the Let's Encrypt Authority.

The updated package fixes the issue with a backported patch from wget 1.14.

[Test Case]
1- wget https://www.x.org
2- Connection should succeed, instead of getting an error (ERROR: no certificate subject alternative name matches)

[Regression Potential]
Commit is simple. If broken, could possibly break SSL support in wget.

Original report:

Let's Encrypt Authority should be added to CA-certificates. https://www.X.org is now using a cert from this CA, wget fails when connecting to X.org.

information type: Private Security → Public
Marc Deslauriers (mdeslaur) wrote :

Current ca-certificates should already have the required CA.

Which version of ca-certificates, and which version of wget are you trying?

Mike Weiss (michaelcweiss) wrote :

The ca-certificates I have is "ca-certificates 20160104ubuntu0.12.04.1"

The issue exists with two versions of wget I've tried
wget 1.13.4-2ubuntu1.2
Wget 1.16.3 which I compiled myself

Although the error message is different for each, I believe its the same issue.

Error with Wget 1.13.4:

"ERROR: no certificate subject alternative name matches
        requested host name `www.x.org'.
To connect to www.x.org insecurely, use `--no-check-certificate'."

Error with Wget 1.16.3:
"ERROR: The certificate of 'www.x.org' is not trusted."

Marc Deslauriers (mdeslaur) wrote :

I can reproduce this with wget on 12.04, but not on 14.04. Both use the same version of ca-certificates.

Using openssl directly also works:
openssl s_client -CAfile /etc/ssl/certs/ca-certificates.crt -connect www.x.org:443

I suspect wget on 12.04 is doing something odd, I'll look into this.

Marc Deslauriers (mdeslaur) wrote :

Ubuntu 12.04 has wget 1.13.4, which doesn't have support for TLS Server Name Indication, which was included in 1.14. That needs to get backported.

no longer affects: ca-certificates (Ubuntu)
Changed in wget (Ubuntu):
status: New → Fix Released
Changed in wget (Ubuntu Precise):
status: New → Confirmed
assignee: nobody → Marc Deslauriers (mdeslaur)
description: updated
Marc Deslauriers (mdeslaur) wrote :

I've uploaded a fixed wget package to precise-proposed for processing by the SRU team.

summary: - Add Let's Encrypt Authority to Package
+ wget in 12.04 does not support SNI
Changed in wget (Ubuntu Precise):
status: Confirmed → In Progress

Hello Mike, or anyone else affected,

Accepted wget into precise-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/wget/1.13.4-2ubuntu1.3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in wget (Ubuntu Precise):
status: In Progress → Fix Committed
tags: added: verification-needed
Mike Weiss (michaelcweiss) wrote :

please excuse me if I'm being dense, I'm new to Ubuntu, but I get this error when I try to install the new package. I've enabled proposed by following the instructions.

(precise)mweiss@localhost:~$ sudo apt-get install wget/precise-proposed
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Release 'precise-proposed' for 'wget' was not found

Marc Deslauriers (mdeslaur) wrote :

If you've added precise-proposed to your /etc/apt/sources.list, all you need to do is perform the two following commands:

1- apt-get update
2- apt-get install wget

Don't forget to remove precise-proposed from your /etc/apt/sources.list when you're done.

Al T (al-t) wrote :

I've just tested the package from -proposed and it fixed a problem with a GitHub https download for me.

It was failing before with SSL connection establishment error and after finding a hint for lack of SNI support in a standard 12.04's wget version by googling, I've found this very bug record and I'm glad to confirm it works [for me].

tags: added: verification-done
removed: verification-needed

The verification of the Stable Release Update for wget has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package wget - 1.13.4-2ubuntu1.3

wget (1.13.4-2ubuntu1.3) precise; urgency=medium

  * debian/patches/sni_support.patch: Add support for TLS SNI.
    (LP: #1580700)

 -- Marc Deslauriers <email address hidden> Wed, 11 May 2016 15:51:31 -0400

Changed in wget (Ubuntu Precise):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers