javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name – Solved

javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name – Solved

The exception javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name

javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name

is actually a bug in the Java v1.7. However we wont get this exception in Java v1.6. To solve this issue, you can either roll back the Java version to 1.6 or add the following code to your start of the program.

System.setProperty(“jsse.enableSNIExtension”, “false”);

[ YOU MAY ALSO LIKE ]

Leave a Reply