Installation error : WGET Unable to establish SSL connection for bootstrap.pypa.io

Resolving bootstrap.pypa.io (bootstrap.pypa.io)... 151.101.0.175, 151.101.64.175, 151.101.128.175, ...
Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|151.101.0.175|:443... connected.
Unable to establish SSL connection.
Traceback (most recent call last):
  File "install.py", line 425, in <module>
    install_bench(args)
  File "install.py", line 45, in install_bench
    'wget': 'wget https://bootstrap.pypa.io/get-pip.py'
  File "install.py", line 234, in run_os_command
    returncode = subprocess.check_call(command, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'wget https://bootstrap.pypa.io/get-pip.py' 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
–secure-protocol=TLSv1

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 …