OpenSSL: error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version

user3847638 picture user3847638 · Nov 5, 2018 · Viewed 14k times · Source

wget -O /Users/itaybd/Finzor_2_26/dev_code/Engine/DATA/EOD/S_temp.zip https://www.quandl.com/api/v3/datatables/SHARADAR/SEP?qopts.export=true&api_key=MYKEY yield OpenSSL: error:1409442E Where

import requests
url = 'https://www.howsmyssl.com/a/check'
r = requests.get(url)
print(r.json()['tls_version'])

Yields: TLS 1.2

How to fix this ????

Answer

Rob Bricheno picture Rob Bricheno · Nov 5, 2018

If your server doesn't support TLS 1.0 you can try running wget with the option --secure-protocol=TLSv1_2

If your version of wget is older than 1.14 and your server uses SNI, upgrade wget to at least 1.14.

Please let us know which of these fixes it, and if neither fixes it then let us know more information about the problem (such as the versions of the software you are using including wget and openssl, and the full error from wget).