Hi
Since few days ago, our app fail to SSL negotiate with api.binance.com. It used to work well.
Now after connect, SSL handshake fails with following error message:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
Is there any change in Binance side? Can we still use http/1.1? Or is it now Binance restrict only to use h2 (http 2.0)?
Same code connect well to with www.google.com and we get following cipher:
Version: TLSv1.3, Cipher: TLS_AES_256_GCM_SHA384
Thanks & regards
Ling
Here are some further info:
./test www.binance.com 443
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
./test www.openssl.org 443
SSL connection on socket 3, Version: TLSv1.2, Cipher: ECDHE-RSA-AES256-GCM-SHA384
./test www.ubuntu.com 443
SSL connection on socket 3, Version: TLSv1.3, Cipher: TLS_AES_256_GCM_SHA384
NOTE: api1.binance.com, api2.binance.com and api3.binance.com works:
./test api1.binance.com 443
SSL connection on socket 3, Version: TLSv1.3, Cipher: TLS_AES_128_GCM_SHA256
./test api2.binance.com 443
SSL connection on socket 3, Version: TLSv1.3, Cipher: TLS_AES_128_GCM_SHA256
./test api3.binance.com 443
SSL connection on socket 3, Version: TLSv1.3, Cipher: TLS_AES_128_GCM_SHA256
I had same problem and fixing in via SSL_set_tlsext_host_name, you can also see SNI for more information.