pqcheck.si
Language: English

Languages and runtimes

Post-quantum TLS on Java (JSSE)

StatusOn after an upgradeYou needJDK 27 or newerChecked4 December 2026 · 2 sources

JEP 527 added hybrid post-quantum key exchange to the JDK's built-in TLS (JSSE) in JDK 27, with X25519MLKEM768 first in the default group list. Older JDKs do not have it built in.

Requirements

Check the runtime version:

java -version

Turn it on

Nothing to do with defaults. If you restrict groups, keep the hybrid one first:

java -Djdk.tls.namedGroups=X25519MLKEM768,x25519,secp256r1,secp384r1 -jar app.jar

Check that it worked

Run the checker against your hostname. It reports X25519MLKEM768 as supported once the change is live.

From a terminal, with an OpenSSL 3.5+ client. Output that names X25519MLKEM768 means it works, a handshake failure alert means it does not:

openssl s_client -connect example.com:443 -servername example.com \
  -tls1_3 -groups X25519MLKEM768 </dev/null 2>&1 | grep -iE 'group|alert'

Common problems

Sources

  1. JEP 527: Post-Quantum Hybrid Key Exchange for TLS 1.3
  2. inside.java: JDK 27 heads-up

More guides: Languages and runtimes

Node.jsGo (crypto/tls)