Enable post-quantum TLS (X25519MLKEM768) on Java (JSSE)
How to offer the hybrid post-quantum key exchange X25519MLKEM768 on Java (JSSE), from the vendor's documentation, checked on December 4, 2026.
Steps
- Check the requirements: JDK 27+ (JEP 527); JDK 21 and 25 have no hybrid key exchange.
- Apply the configuration below.
- Reload the service and check it again on checkmypqc.com.
Recommended now: post-quantum first, classical kept
-Djdk.tls.namedGroups=X25519MLKEM768,x25519,secp256r1,secp384r1
JDK 27 enables X25519MLKEM768 by default. An application that sets jdk.tls.namedGroups or SSLParameters.setNamedGroups keeps its own list: add X25519MLKEM768 to it.
Later: require post-quantum
-Djdk.tls.namedGroups=X25519MLKEM768,SecP256r1MLKEM768,SecP384r1MLKEM1024 \
-Djdk.tls.server.protocols=TLSv1.3
Findings
- HighNo post-quantum key exchange
CMP-TLS-KX-CLASSICAL - HighTLS 1.3 is not enabled
CMP-TLS-NO-TLS13 - HighOnly a pre-standard post-quantum group
CMP-TLS-KX-DRAFT-ONLY - HighBrowsers get classical key exchange
CMP-TLS-KX-NOT-PREFERRED - MediumCurrent browsers are refused
CMP-TLS-KX-BROWSER-REFUSED - LowA draft group is still accepted
CMP-TLS-KX-DRAFT-ENABLED - LowTLS 1.2 is still accepted
CMP-TLS-TLS12-ACCEPTED