SSL23_GET_SERVER_HELLO:sslv3 alert handshake failu

2019-08-02 09:25发布

问题:

In my app I am fetching JSON from various sites but I get handshake failure on a particular site. My app works fine on windows but fails on android. here is log snipet which I have doubt on. I guess there is some certificate issue.

    I/python  (16801):  /data/data/org.test.coinswatch/files/app/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:334: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

    I/python  (16801):  /data/data/org.test.coinswatch/files/app/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:132: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

    I/python  (16801): [ CoinsWatch ]except buyucoin [Errno 1] _ssl.c:503: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

    I/python  (16801): [INFO   ] [OSC         ] using <thread> for socket

My Buildozer requirements are as follows:

requirements = kivy,requests[security],openssl

Need some direction to solve the issue.