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

Solution Verified - Updated -

Issue

We have an SSL connection setup for secure communication between two programs. But it fails with:

javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
    at sun.security.ssl.ClientHandshaker.handshakeAlert(ClientHandshaker.java:1292)
    at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1954)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1077)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:515)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
...
  • Getting issue when making connection as SSL to new jboss with JDK 1.7 where it is expected to to connect and launch a URL for GSA(Google Search Appliance) to crawl. Can -Djsse.enableSNIExtension=false be used? What impact does it have?

Environment

Java JDK 1.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.