John_S
1
Hi Guys, I’m trying to run a HTTP GET via .Q.hg, however the call throws an error (on Mac and Ubuntu).
140490736936608:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:s23_clnt.c:770:
The same URL works via a browser and wget. Does anyone have an idea as to what the problem could be?
q).Q.hg `:https://api.binance.com/api/v1/ticker/allPrices
140490736936608:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:s23_clnt.c:770:
'conn. OS reports: Protocol error
[0] .Q.hg `:https://api.binance.com/api/v1/ticker/allPrices
^
q).Q.hg `:https://www.bitmex.com/api/v1/instrument
"[{"symbol":"XBTZ14","rootSymbol":"XBT","state":"Settled","typ"..
Thanks, John
a google for:
SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:s23_clnt.c:770
yields:
?
https://stackoverflow.com/questions/34187934/openssl-connection-error-ssl23-get-server-hello-but-browser-and-curl-works
briefly:
… requires Server Name Indication (SNI) and SSL handshakes not using SNI will cause failure
?
Hello John,
Can you please check what version of open ssl you are using?
The get request works succesfully on a mac running the following version of openssl
Karans-MacBook-Pro:~ karan$ openssl version
LibreSSL 2.2.7
q)).Q.hg `:https://api.binance.com/api/v1/ticker/allPrices
"[{"symbol":"ETHBTC","price":"0.05492600"},{"symbol":"LTCBTC","p..
Some versions have problems with performing SSL handshakes, as servers don’t tolerate it well.
Regards
Karan
Works successfully for me on ubuntu running the following version of openssl
kpatel@homer:~$ openssl version
OpenSSL 1.0.2g 1 Mar 2016
Regards
Karan