Unrecognized SSL message, plaintext connection?

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

The following appears in the atlassian-crowd.log:

1 2 3 4 5 6 7 8 2014-04-21 11:43:31,503 http-bio-8095-exec-4 INFO [service.soap.client.SecurityServerClientImpl] Existing application token is null, authenticating ... 2014-04-21 11:43:31,517 http-bio-8095-exec-4 ERROR [xfire.transport.http.HttpChannel] javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? 2014-04-21 11:43:31,524 http-bio-8095-exec-4 ERROR [crowd.console.action.Login] Failed to connect to the authentication server, please check your crowd.properties org.springframework.security.authentication.AuthenticationServiceException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Couldn't send message. Caused by: org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Couldn't send message. Caused by: org.codehaus.xfire.fault.XFireFault: Couldn't send message. Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

Cause

Java 7 introduced SNI support which is enabled by default. Certain misconfigured servers send an "Unrecognized Name" warning in the SSL handshake which is ignored by most clients, except for Java.

Resolution

  • Add the following to the JAVA_OPTS environment variable:

1 -Djsse.enableSNIExtension=false
  • Restart your Crowd instance.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.