Migration guide

Post-quantum hybrid key exchange in Java (JSSE)

JDK 27 (JEP 527) and Oracle JDK 25.0.5 add hybrid post-quantum key exchange for TLS 1.3, with X25519MLKEM768 first in the default named-group list, so no code change is needed unless your code or a system property sets named groups. For another vendor's JDK 25 build, check its release notes. Verify with our check.

Documentation only Last reviewed 2026-12-04

How this guide was validated. Drafted from JEP 527 (Status: Closed / Delivered, Release: 27) and the Oracle JDK 25.0.5 release notes (October 20, 2026). Not run on a Java server here.

Applies to

  • JDK 27 (JEP 527)
  • Oracle JDK 25.0.5 and later 25 updates (Oracle's release notes list the feature)
  • javax.net.ssl servers and clients

Before you start

  • A JDK that includes the feature: JDK 27, or Oracle JDK 25.0.5 or a later 25 update. For another vendor's 25.x build, confirm the feature in that vendor's release notes. Check with java -version.

Steps

  1. Check the Java version
    JEP 527 is delivered in JDK 27. Oracle's JDK 25.0.5 release notes (October 20, 2026) list Post-Quantum Hybrid Key Exchange for TLS 1.3 (JDK-8314323), with X25519MLKEM768 enabled by default and the most preferred group.
    java -version
  2. Look for a named-group override
    The system property jdk.tls.namedGroups or a call to SSLParameters.setNamedGroups replaces the default list. If either sets a list without a hybrid group, add X25519MLKEM768 first.
    java -XshowSettings:properties -version 2>&1 | grep jdk.tls.namedGroups
    grep -rn 'setNamedGroups\|jdk.tls.namedGroups' --include='*.java' --include='*.properties' .

Verify

  1. Use JSSE handshake debugging
    Oracle's notes show enabling JSSE debugging and reading the named group in the key_share of the ServerHello.
    java -Djavax.net.debug=ssl:handshake ...

    Expect: "named group": x25519mlkem768

Verify with our check

Run the public checker on your hostname at postquantumverified.com. It opens one TLS 1.3 handshake on port 443 and shows Verified (the server selected the hybrid group X25519MLKEM768), Not post-quantum (it selected a classical group) or Could not check. Each check gets a dated record at /verify/{hostname} that anyone can open again. If the result is not Verified, see Why did my check say Not post-quantum? and Why did my check say Could not check?.

The checker tests the public HTTPS endpoint on port 443 of the exact hostname you enter. Mail (SMTP, IMAP) and other ports are not covered by it.

Roll back

  1. Restore the previous named-group setting
    Remove or restore the jdk.tls.namedGroups property or setNamedGroups call.

What this guide does not cover

  • A key-exchange result says nothing about authentication: the certificate and its signature are a separate question, and certificate signatures are not made post-quantum by this change.
  • Only the connection between the client and this endpoint is covered. A CDN or load balancer in front of it terminates the client connection itself. See cdn-edge-and-origin.
  • Clients that do not offer the hybrid group will use a classical group. That is expected.
  • JEP 527 covers TLS 1.3 only, and only javax.net.ssl.
  • SecP256r1MLKEM768 and SecP384r1MLKEM1024 are supported but not enabled by default. Pure ML-KEM key exchange is not part of JEP 527.

Sources

Only change systems you own or are authorized to change. Have a person approve each change and keep a rollback.