Installation error : WGET Unable to establish SSL connection for

Resolving (,,, ...
Connecting to (||:443... connected.
Unable to establish SSL connection.
Traceback (most recent call last):
  File "", line 425, in <module>
  File "", line 45, in install_bench
    'wget': 'wget'
  File "", line 234, in run_os_command
    returncode = subprocess.check_call(command, shell=True)
  File "/usr/lib/python2.7/", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'wget' returned non-zero exit status 4

I’m trying to install erpnext on fresh ubuntu 14 servers and getting above error. My ssl is using the protocol of TSL1.
Do anyone have any Idea on this error?

Is your openssl library up to date? You could work around this by adding to the wget command…

wget --no-check-certificate https://www

but this doesn’t really solve the problem.
You could also try to use flags like

Maybe check if you can access the site with

openssl s_client -connect …

or with

openssl s_client -tls1 -no_tls1_1, -no_tls1_2 …