Android 4.1.1 ssl exception while accessing Nasa webservice

176 views Asked by At

I'm trying to access to a Nasa webservice, using Android 5.x everything works, but when using Android 4.1.1 an Exception is throw: javax.net.ssl.SSLException: Connection closed by peer

 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

Any ideas why ?

1

There are 1 answers

1
Steffen Ullrich On BEST ANSWER

The site supports only TLS 1.1+, not TLS 1.0 (see the analysis of SSLLabs). Android 4.1.1 does not support TLS 1.1+ according to SSLLabs.