Today the JDK is upgraded from 1.6 to 1.7, but the httpurlconnection connection to HTTPS is problematic.
Javax.net.ssl.SSLProtocolException:handshake Alert:unrecognized_name at Sun.security.ssl.ClientHandshaker.handshakeAlert (clienthandshaker.java:1288) at Sun.security.ssl.SSLSocketImpl.recvAlert (sslsocketimpl.java:1904) at Sun.security.ssl.SSLSocketImpl.readRecord ( sslsocketimpl.java:1027) at Sun.security.ssl.SSLSocketImpl.performInitialHandshake (sslsocketimpl.java:1262) at Sun . Security.ssl.SSLSocketImpl.startHandshake (sslsocketimpl.java:1289) at Sun.security.ssl.SSLSocketImpl.startHandshake (sslsocketimpl.java:1273) at Sun.net.www.protocol.https.HttpsClient.afterConnect (httpsclient.java:523) at Sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect (Abstractdelegatehttpsurlconnection.java : 185) at Sun.net.www.protocol.http.HttpURLConnection.getInputStream (httpurlconnection.java:1296) at Sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream (httpsurlconnectionimpl.java:254) at Java.net.URL.openStream (url.java:1035)
Brother Gu, originally a JDK version of the problem, the solution in the code before adding
System.setproperty ("Jsse.enablesniextension", "false");
For more detailed explanations on Overflowstack, click on the link address below to view
http://stackoverflow.com/questions/7615645/ssl-handshake-alert-unrecognized-name-error-since-upgrade-to-java-1-7-0
SSL Handshake alert:unrecognized_name Error since upgrade to Java 1.7