Software⏱️ 3 min read📅 2026-06-11

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

Wget error unable to establish SSL connection fix

Quick Answer: Try updating OpenSSL or using a different version of Wget that supports TLS 1.1 and TLS 1.2.

The error 'Unable to establish SSL connection' occurs when Wget attempts to connect to a website using HTTPS (SSL/TLS) but encounters an issue with the SSL handshake. This issue affects users who have not updated their OpenSSL library or have configured their system to use an outdated version of the library.

This error can be frustrating, especially if you're trying to access a secure website like Minecraft's official website. However, don't worry; we'll walk you through some steps to resolve this issue and get Wget working again.

⚠️ Common Causes

  • The primary reason for this error is an incompatibility between the OpenSSL library version used by Wget and the version required by the target website. This can happen if the system's OpenSSL library is outdated or not properly configured.
  • Another possible cause is a misconfigured system setting that prevents Wget from using the correct SSL/TLS version.

🔧 Proven Troubleshooting Steps

Updating OpenSSL Library

  1. Step 1: Open a command prompt as an administrator and type `wget --version` to check the current OpenSSL library version. If it's outdated, update it by running `winget upgrade openssl` (for Windows) or `apt-get update && apt-get install openssl` (for Linux).
  2. Step 2: After updating the OpenSSL library, restart Wget by running `wget --version` again.
  3. Step 3: Verify that the issue is resolved by trying to download a website using HTTPS.

Configuring SSL/TLS Version

  1. Step 1: Open the Wget configuration file (usually located at `~/.wgetrc`) and add the following line: `ssl_version = tlsv1.2`. This will configure Wget to use the latest TLS version.
  2. Step 2: Restart Wget by running `wget --version` again.
  3. Step 3: Verify that the issue is resolved by trying to download a website using HTTPS.

🎯 Final Words

If you've tried both methods and still encounter the error, it's possible that there's an issue with your system configuration or network settings. In this case, consider reaching out to your system administrator or network provider for assistance.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions