Closed sanel closed 8 years ago
Using location-by-zip on JDK 1.7 will trigger this exception:
location-by-zip
com.pav.api.location.location-service=> javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at sun.security.ssl.Alerts.getSSLException (Alerts.java:192) sun.security.ssl.Alerts.getSSLException (Alerts.java:154) sun.security.ssl.SSLSocketImpl.recvAlert (SSLSocketImpl.java:1991) sun.security.ssl.SSLSocketImpl.readRecord (SSLSocketImpl.java:1098) sun.security.ssl.SSLSocketImpl.performInitialHandshake (SSLSocketImpl.java:1344) sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:1371) sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:1355) org.apache.http.conn.ssl.SSLSocketFactory.connectSocket (SSLSocketFactory.java:543)
After some investigation, the cause is new certificate chain on http://sunlightfoundation.com site, which isn't supported by Java 7 (according to this: https://blogs.oracle.com/java-platform-group/entry/diagnosing_tls_ssl_and_https).
Solution is to use http on Java 7 and https on Java 8 for this site.
http
https
Using
location-by-zip
on JDK 1.7 will trigger this exception:After some investigation, the cause is new certificate chain on http://sunlightfoundation.com site, which isn't supported by Java 7 (according to this: https://blogs.oracle.com/java-platform-group/entry/diagnosing_tls_ssl_and_https).
Solution is to use
http
on Java 7 andhttps
on Java 8 for this site.