WGET issue on ubuntu in private network
Issue : — wget commend does not work on ubuntu system from certain private network for https URLs
Root Cause : — Sometimes the precompiled wget binaries refuse to work with your ssl linked libraries.
Error snapshots —
Solution : — The simple solution is to compile a new wget binary to be used with your ssl libraries.
wget http://files.directadmin.com/services/wget-1.8.2.tar.gztar xvzf wget-1.8.2.tar.gzcd wget-1.8.2./configure --prefix=/usr --with-sslmakemake install
f you’re using FreeBSD, you’d need to use — prefix=/usr/local instead of /usr.
Pre-requisite — we need to have libssl installed, to install libssl -
sudo apt-get install libssl1.0-dev
Steps –
Step 1 — download wget gunzip file and unzip
Step 2 — Install “make” if not already there
Step 3 — Install “build-essential”
Step 4 — Install libssl1.0-dev –
Step 5 — Configure with SSL
Step 6 — make
Step 7 — Restart the machine and verify the wget works for https endpoint properly –