Android 4.1.1 访问Nasa webservice时出现ssl异常
Android 4.1.1 ssl exception while accessing Nasa webservice
我正在尝试访问 Nasa 网络服务,使用 Android 5.x 一切正常,但是当使用 Android 4.1.1 时抛出异常:javax.net.ssl.SSLException:连接被对等方关闭
OutputStream output = null;
url = new URL("https://firms.modaps.eosdis.nasa.gov/active_fire/text/Europe_24h.csv");
HttpsURLConnection https = (HttpsURLConnection) url.openConnection();
https.getInputStream(); <---- fails here
知道为什么吗?
该站点仅支持 TLS 1.1+,不支持 TLS 1.0(请参阅 analysis of SSLLabs)。
Android 根据 SSLLabs.
,4.1.1 不支持 TLS 1.1+
我正在尝试访问 Nasa 网络服务,使用 Android 5.x 一切正常,但是当使用 Android 4.1.1 时抛出异常:javax.net.ssl.SSLException:连接被对等方关闭
OutputStream output = null;
url = new URL("https://firms.modaps.eosdis.nasa.gov/active_fire/text/Europe_24h.csv");
HttpsURLConnection https = (HttpsURLConnection) url.openConnection();
https.getInputStream(); <---- fails here
知道为什么吗?
该站点仅支持 TLS 1.1+,不支持 TLS 1.0(请参阅 analysis of SSLLabs)。 Android 根据 SSLLabs.
,4.1.1 不支持 TLS 1.1+