cipher suites SSL / TLS Origin: Network OSI layer 6 · Presentation Last updated 18 Nov 2026

Java: SSLHandshakeException — no cipher suites in common (server side)

The Java server has no cipher suite in common with the client, often because of its keystore key type or enabled suites.

Exact message you may see no cipher suites in commonjavax.net.ssl.SSLHandshakeException: no cipher suites in commonSSLHandshakeException: Received fatal alert: handshake_failure no cipher suites in commonNo available authentication schemeJava server no cipher suites
Seen on: Java SSL

Meaning

A keystore holding only an ECDSA/DSA key can't use RSA suites (and vice versa). Provide a key that matches enabled suites, enable modern suites, and check jdk.tls.disabledAlgorithms. Tomcat/Jetty keystores often have the wrong alias.

Common causes

  • Keystore key type doesn't match cipher suites
  • Weak suites disabled
  • Wrong key alias selected
  • Client only offers legacy suites
  • FIPS restrictions

⚡ Quick fix

  1. Use a keystore key compatible with the enabled suites
  2. Enable TLS_ECDHE_RSA/ECDSA suites
  3. Check the connector's keyAlias

Detailed fix by platform

Shell

  1. keytool -list -v -keystore keystore.jks | grep -E "Alias|Key Algorithm"

How to diagnose

  1. Key type — RSA/ECDSA?
  2. Suites — Match?
  3. Alias — Correct?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Network. Errors that are often confused with or caused by this one (click to open):

disabledAlgorithms — Java: SSLHandshakeException — TLSv1/TLSv1.1 or algorithm disabled by jdk.tls.disabledAlgorithms (SSL / TLS)disabledAlgorithmsDjango — Django send_mail: ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] (EMAIL_USE_SSL vs EMAIL_USE_TLS on the wrong port) (Email / SMTP)Djangohostname — Java: SSLPeerUnverifiedException — Certificate for <host> doesn't match any of the subject alternative names (SSL / TLS)hostnameJavaMail — javax.mail.MessagingException: Could not connect to SMTP host: smtp.example.com, port: 587 (JavaMail) (Email / SMTP)JavaMailKeystore was tampered with, or password was incorrect — Java keytool: java.io.IOException: Keystore was tampered with, or password was incorrect (SSL / TLS)Keystore was tampered…no shared cipher — SSL routines: no shared cipher (client and server have no common cipher suite) (SSL / TLS)no shared cipherNo subject alternative names present — Java: javax.net.ssl.SSLHandshakeException: No subject alternative names matching IP address 10.0.0.5 found (SSL / TLS)No subject alternativ…plaintext — Java: SSLException — Unrecognized SSL message, plaintext connection? (HTTPS client talking to an HTTP port) (SSL / TLS)plaintextcipher su…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.