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
- JDK 27 or newer for the built-in support.
- No jdk.tls.namedGroups override, or one that includes X25519MLKEM768.
Check the runtime version:
java -versionTurn 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.jarCheck 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
- Long-term-support releases before 27 (such as 21 and 25) do not include it. Ask your JDK vendor about backports, or terminate TLS in front of the app (nginx, a load balancer or a CDN).
- Application servers can set their own named groups. Check Tomcat, Jetty or Spring Boot TLS settings too.