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

**Code:** `cipher suites` · **Category:** SSL / TLS · **Seen on:** Java, SSL

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

## 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?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/ssl/java-no-cipher-suites-in-common)
