Wget returning error: "Unable to establish SSL connection."

151,646

Solution 1

As SSL Labs shows, only TLSv1.0 and above are supported by minecraft.net. You can't use SSLv3 with it. It's likely that your version of wget doesn't support this (possibly due to being too old). Try upgrading it.

Solution 2

You can find a newer version here: Windows binaries of GNU Wget

It works fine, I had the same problem.

Solution 3

I downloaded the 32-bit .exe file. It works.

wget.exe np -r -nH -L --cut-dirs=2 https://coast.noaa.gov/htdata/lidar1_z/geoid12a/data/3654/20090316_249102.laz

Solution 4

Had a similar error, but in my case only “Unable to establish SSL connection.” was shown without explanation. I have used a WinWget, which included a wget compiled without SSL support. Solved by downloading full version from https://eternallybored.org/misc/wget/

Solution 5

You may want to add --secure-protocol=TLSv1 option.

Check also if installed OpenSSL supporting TLS by running:

openssl s_client -connect minecraft.net:443 -tls1
Share:
151,646

Related videos on Youtube

William V.
Author by

William V.

I am William. I use Windows 10 on an Acer computer. I also have a custom-built PC with a dual boot running Linux (Ubuntu) and Windows 7. I ask questions mostly about how to solve my computer problems that are probably pretty easy to solve but I have no clue how to solve them! I also like to build custom computers, so my question will pertain to that on here. I also like to push the limits with a computer, especially seeing if computers with 1 or 2 GBs of RAM can run programs meant for computers with 4+ GBs of RAM. On a more personal note, I like to spend my time practicing my guitar, hanging out with family and friends or playing with my dog. I also burn some of my free time by custom building computers. I also like to read a lot, and I mean a lot! My favorite food is Tortellini and Dairy Milk Rocky Road chocolate bars.

Updated on September 18, 2022

Comments

  • William V.
    William V. over 1 year

    When I try to run Wget with the following options:

    E:\Program Files\GnuWin32\bin>wget -p --html-extension --convert-links --no-check-certificate https://minecraft.net/en-us/
    SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
    syswgetrc = E:\Program Files\GnuWin32/etc/wgetrc
    --2017-02-24 10:38:01--  https://minecraft.net/en-us/
    Resolving minecraft.net... 52.84.24.33, 52.84.24.150, 52.84.24.230, ...
    Connecting to minecraft.net|52.84.24.33|:443... connected.
    OpenSSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
    Unable to establish SSL connection.
    

    I get the error: Unable to establish SSL connection. The website that I am trying to download is safe.

    I have also tried to change the protocol to SSLv3, but it still is not working.

    Can someone tell me why it is doing this and how to get around it?

    • Admin
      Admin about 7 years
      What type fo connnection is this server expecting? It migh be configured to support (SSLv1, SSLv3, SSLv3, TLS 1.0, TLS 1.1, TLS 1.2) or any combination of those possible choices. Does a connection to this website work within a browser, on the same PC and connection, your attempting to connect to it with wget?
    • Admin
      Admin about 7 years
      I can access this website on my computer normally using Chrome with no problems.
    • Admin
      Admin about 7 years
      I look's like it may be using the SSLv3 connection as it states the following in the error: routines:SSL23_GET_SERVER_HELLO:sslv3.
    • Admin
      Admin about 7 years
      That is what, wget is attempting to use, but the server is rejecting that connection because SSLv3 isn't secure.
    • Admin
      Admin about 7 years
      According to other answers below, it looks like the protocol is TLSv1.0
  • William V.
    William V. about 7 years
    --secure-protocol+TLSv1 Gave me the same error that I got before.
  • Alex
    Alex about 7 years
    @WilliamV. I just run the same wget ... string by copy/pasting it from your question without changes on debian 8 jessie and it works without any error. Since you using some Window's port of wget, it looks like linked OpenSSL lib is outdated. Try to setup virtual machine with bare(non gui) debian and it should work. Another option, - use cygwin, it always comes with most recent versions of all programs. I just check the same wget... from cygwin, and it worked too.
  • William V.
    William V. about 7 years
    I can't install cygwin. Is it possible that I could try this on Xubuntu with Wget? I have a Linux machine that is running Xubuntu currently.
  • William V.
    William V. almost 7 years
  • MarkHu
    MarkHu about 5 years
    Years later, version 1.20.3 was available... but it had problems. I had to run this to get a working version (under Windows): choco install wget --version 1.20
  • Radon8472
    Radon8472 over 4 years
    I have the problem that all 64bit Versions of this wget there always crush after some seconds of downloading a file over https
  • Christopher
    Christopher over 4 years
    I had wget 1.11.x - moving up to 1.20.3 resolved this for me as well. Thanks.
  • William V.
    William V. over 4 years
    You might try adding your information as a comment to the accepted answer.
  • ENIAC-6
    ENIAC-6 almost 3 years
    Version 1.21.1 at eternallybored.org/misc/wget worked for me