Does OpenJDK 27 negotiate post-quantum key exchange without extra configuration?
Engineers running Java services on JDK 27 get post-quantum key exchange by default in one case: TLS 1.3 negotiates the hybrid group X25519MLKEM768 whenever the peer also supports it, because Oracle's JSSE reference guide lists that hybrid as the most preferred named group. No setting is needed for that. Everything else needs a decision. The other two hybrid groups, SecP256r1MLKEM768 and SecP384r1MLKEM1024, are provided by the SunJSSE provider but must be enabled explicitly. TLS signature schemes in the JDK 27 standard names specification remain classical: none of the 16 listed schemes is ML-DSA. So a default JDK 27 connection gets a hybrid key exchange, while the server and client certificates still rest on RSA, ECDSA or EdDSA.
Standalone ML-KEM and ML-DSA are a separate matter. Oracle documents the ML-KEM (512, 768, 1024) and ML-DSA (44, 65, 87) names for the KEM, Signature, KeyPairGenerator and KeyFactory APIs from JDK 24 onward, so code can call them directly, but that is application work, not a TLS default. Oracle has said on inside.java (2026-08-07) that it is pursuing PQC-enabled TLS for current LTS releases, but the statement is general and gives no dates or release list, so service owners should confirm with Oracle which LTS release carries each item before planning around it.
Service owners should confirm the group on the wire, not assume it: run a test client against the service with -Djavax.net.debug=ssl:handshake and check the negotiated group. Security assessors and vendor-risk reviewers should record three facts per service: the JDK build version, whether jdk.tls.namedGroups or SSLParameters.setNamedGroups changes the group list, and that certificate signatures stay classical. Those three facts answer what the vendor says and what the service actually does, which is the gap an assessment has to close.
Which post-quantum settings apply to which JDK version and component
This table compares which post-quantum settings exist in each JDK release and component, with the source and date for each row. Use it to check whether a standalone ML-KEM or ML-DSA API, a TLS hybrid group or a classical signature scheme applies to the version you run, and where the setting is configured. The main takeaway is that JDK 24 documents standalone algorithms, while JDK 27 adds hybrid TLS groups that must be enabled or confirmed in your configuration.
| Component | JDK 24 | JDK 27 | Source and date |
|---|---|---|---|
| Standalone ML-KEM | Documented: ML-KEM-512, ML-KEM-768, ML-KEM-1024 for KEM, KeyPairGenerator and KeyFactory APIs | Documented: same parameter sets and APIs, defined in FIPS 203 | JDK 24 and JDK 27 Java Security Standard Algorithm Names specifications (Oracle) |
| Standalone ML-DSA | Documented: ML-DSA-44, ML-DSA-65, ML-DSA-87 for Signature, KeyPairGenerator and KeyFactory APIs | Documented: same parameter sets, defined in FIPS 204; ML-DSA-87 is listed as a CNSA 2.0 parameter set | JDK 24 and JDK 27 Standard Names specifications (Oracle) |
| TLS hybrid groups | Not listed in the JDK 24 sources reviewed for this page | X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024 provided by SunJSSE; X25519MLKEM768 is the default most preferred group | OpenJDK Quality Outreach heads-up, 2026-05-17; JDK 27 JSSE Reference Guide |
| Default group preference | Not stated in the sources reviewed | Clients offer a hybrid X25519MLKEM768 key share and a classical x25519 key share; hybrid is negotiated when the peer supports it | JDK 27 JSSE Reference Guide; OpenJDK heads-up, 2026-05-17 |
| jdk.tls.namedGroups property | Not stated in the sources reviewed | Comma-separated, quoted list in preference order; if undefined or empty, implementation defaults apply | JDK 27 JSSE Reference Guide |
| SSLParameters.setNamedGroups | Not stated in the sources reviewed | Sets enabled groups in code; getNamedGroups reads them; an alternative to jdk.tls.namedGroups | JDK 27 JSSE Reference Guide; inside.java post, 2026-02-17 |
| Classical TLS signature schemes | Not stated in the sources reviewed | 16 schemes (ECDSA, EdDSA, RSA PKCS#1, RSA-PSS); none is ML-DSA, so TLS signatures remain classical | JDK 27 Standard Names specification (Oracle) |
| disabledAlgorithms baseline (jdk.tls.disabledAlgorithms) | Not stated in the sources reviewed | Disables SSLv3, TLSv1, TLSv1.1, RC4, DES, 3DES_EDE_CBC, anon, NULL, TLS_RSA_*, and SHA-1 handshake signatures; the master java.security file was read on 2026-12-03 | OpenJDK master branch java.security, read 2026-12-03 |
How TLS 1.3 picks a hybrid group when the peer supports it
In JDK 27, the hybrid group X25519MLKEM768 is the most preferred named group by default, so a TLS 1.3 connection negotiates it whenever the peer also supports it. The client does not send only the hybrid. According to the OpenJDK Quality Outreach heads-up of 2026-05-17, JDK 27 clients offer both a hybrid X25519MLKEM768 key share and a classical x25519 key share in the ClientHello. The server then chooses among the groups it supports from what the client offered. If the peer supports the hybrid group, the connection uses it. If it does not, the handshake falls back to the classical x25519 share. Confirm this behavior against your own peers with a packet capture, since the sources listed here describe the intended negotiation and do not show a trace from your environment.
The hybrid group is a key exchange mechanism. It combines ML-KEM with ECDHE, and the JSSE guide describes the ML-KEM hybrid schemes in that role. Certificates and signatures are a separate question. The JDK 27 Standard Names specification lists 16 TLS signature schemes covering ECDSA, EdDSA and RSA PKCS#1 and RSA-PSS variants, and none of them is ML-DSA. A post-quantum key exchange therefore does not make the certificate chain or the handshake signatures post-quantum. Teams that need post-quantum signatures should check that separately and not assume it follows from enabling the hybrid group.
Other hybrid groups, SecP256r1MLKEM768 and SecP384r1MLKEM1024, are not the default and must be enabled explicitly. The JSSE guide gives an example of a client that prefers secp256r1 and x25519 over the default hybrid while also enabling SecP256r1MLKEM768. To change the order or the enabled set, use the jdk.tls.namedGroups system property, or call SSLParameters.setNamedGroups in code. Before you change the default, list the groups your peers support and confirm the resulting negotiation in a test environment.
How the configuration differs by JDK release and access method
JDK 24 documents ML-KEM and ML-DSA as standard algorithm names for the Java Cryptography Architecture, so applications can request them directly through the KEM, Signature and KeyFactory APIs. The names are ML-KEM-512, ML-KEM-768 and ML-KEM-1024 for key encapsulation, and ML-DSA-44, ML-DSA-65 and ML-DSA-87 for signatures. Nothing in these APIs changes how TLS negotiates key exchange, so a JDK 24 application still needs separate code to use these algorithms on the wire.
- Algorithm names: Pass the standard name to
KeyPairGenerator.getInstance,KeyFactory.getInstance,Signature.getInstanceorKeyEncapsulationMechanismrequests, for exampleML-KEM-768orML-DSA-65. - Scope: The names apply to code that calls these APIs. They do not add post-quantum groups to
SSLSocketorSSLEngineconnections. - Parameter sets: ML-KEM-1024 and ML-DSA-87 are the sets that CNSA 2.0 uses, and the same names appear in the JDK 27 specification.
- Keystores: Keys generated under these names go into the keystore your application configures. Check how your keystore stores them before relying on it.
- Not changed: The
jdk.tls.namedGroupsproperty andSSLParameterssettings have no effect on these APIs.
Confirm the exact names your build calls against the JDK 24 specification, and test each name in a staging environment before you rely on it.
JDK 27 changes TLS 1.3 defaults. The JSSE reference guide says the most preferred named group is the hybrid scheme X25519MLKEM768, so a TLS connection negotiates a hybrid group whenever the peer also supports it. No property needs to be set for this default. The OpenJDK heads-up notes that clients offer both a hybrid X25519MLKEM768 key share and a classical x25519 key share.
- Default group: X25519MLKEM768 is the most preferred group in the default list.
- Client behavior: A client sends a hybrid key share and a classical x25519 key share in the same handshake.
- Other hybrids: SecP256r1MLKEM768 and SecP384r1MLKEM1024 are provided by SunJSSE in JDK 27 but are not preferred by default. Enable them explicitly if you need them.
- Signatures: The TLS signature scheme table in JDK 27 lists no ML-DSA scheme, so certificate signatures remain classical.
- Not changed: The default does not alter certificate chains, keystores or the standalone KEM and Signature APIs.
Confirm with the peer that it supports X25519MLKEM768, and test whether older clients or middleboxes accept the larger handshake.
The jdk.tls.namedGroups system property replaces the default group list with the list you supply, in preference order. The value is a comma-separated, quoted list, and it is read at startup. If the property is undefined or empty, the JDK uses its default groups and preferences. Setting it is useful when you need a specific hybrid, or when you need to remove the hybrid group from the preference order.
- Syntax: Pass the list as
-Djdk.tls.namedGroups="X25519MLKEM768,secp521r1,secp256r1,ffdhe2048", with the quotes shown. - Scope: The property applies to the JVM where it is set, and to every TLS 1.3 connection in that JVM that uses SunJSSE.
- Ordering: The first entry is the most preferred group. Omitting the hybrid group removes it from the offer.
- Other groups: The JDK 27 Named Groups table includes secp256r1, secp384r1, secp521r1, x25519, x448 and ffdhe2048 through ffdhe8192.
- Not changed: The property does not change keystores, certificate chains, cipher suites or the standalone APIs.
Check the list against the peer's supported groups, and confirm that the JVM receives the property in production, since a value set only in a test script has no effect on a deployed service.
An application can set the same groups in code with SSLParameters.setNamedGroups(String[]). The JSSE guide presents this as an alternative to the jdk.tls.namedGroups property. The value you set applies to the connection or engine that receives the parameters, so it is possible to use different groups for different endpoints in one JVM. Read the setting back with getNamedGroups() to confirm what the connection will use.
- Method: Call
setNamedGroupson theSSLParametersobject, then apply it withsetSSLParameterson the socket or engine. - Scope: The setting applies to that socket or engine only, which differs from the JVM-wide system property.
- Verification: Use
getNamedGroups()after the call to confirm the list before the handshake. - Precedence: The sources list both mechanisms as ways to customize the enabled hybrid groups. Confirm in the JSSE guide which setting takes effect when both are present.
- Not changed: The method does not change certificate signatures, keystores or the standalone ML-KEM and ML-DSA APIs.
Record which endpoints set groups in code, since these settings are not visible in a single JVM configuration file during an inventory review.
How a JDK 27 TLS client chooses its key exchange group
The application decides the enabled groups first, through the jdk.tls.namedGroups property or SSLParameters.setNamedGroups, and the default is the hybrid X25519MLKEM768. The client then offers a hybrid key share and a classical x25519 key share in its ClientHello. The server picks one group from that offer, and the handshake completes with either a hybrid or a classical group. Check the enabled list and the server's supported groups, because a hybrid group is negotiated only when both peers support it.
Shows how the JDK 27 TLS client moves from enabled groups to the negotiated key exchange group.
Steps to enable and verify hybrid key exchange in a Java service
This sequence confirms which JDK a service runs, sets or accepts the hybrid key exchange groups, checks that the TLS 1.3 settings still allow those groups, and records a handshake showing which group was negotiated. The result is dated evidence that a specific service on JDK 27 offers and uses X25519MLKEM768 or another hybrid group with a named peer.
Confirm the runtime is JDK 27
The engineer who runs the service confirms the JVM that starts the process, not only the JDK on the build machine. Run java -version against the same runtime the service uses, and check the output for the JDK 27 release string. The Oracle JDK 27 JSSE reference guide and the OpenJDK heads-up of 2026-05-17 describe the hybrid groups as part of JDK 27, so a service on an earlier release does not have these settings to tune. If the output shows an earlier release, stop here and record that the service needs a runtime change before the remaining steps apply. This step is closed when the version string for the running service is written into the evidence record.
Decide the named group configuration
Choose one of three paths. The first is to accept the default, under which the JSSE guide says the most preferred named group is X25519MLKEM768, so a connection negotiates a hybrid group whenever the peer supports it. The second is to set the system property jdk.tls.namedGroups to a quoted, comma-separated list in the order you want, for example "X25519MLKEM768,secp521r1,secp256r1,ffdhe2048", and if the property is unset or empty, the implementation defaults apply. The third is to call SSLParameters.setNamedGroups in code and read the value back with getNamedGroups. The owner of the service should pick one path and note the reason, because a list that omits the hybrid groups will prevent them from being negotiated. This step is closed when the chosen path and the exact setting or code change are recorded.
Check protocols and cipher suites
Confirm that the TLS settings still allow TLS 1.3, because the hybrid key exchange is a TLS 1.3 feature in the JDK 27 JSSE guide. Look at jdk.tls.client.protocols and jdk.tls.server.protocols, which have no default value, and at any SSLParameters.setProtocols call in the code. Also check jdk.tls.client.cipherSuites and jdk.tls.server.cipherSuites, which override the default suites when set, and confirm that the list does not remove the suites needed for TLS 1.3. The guide cautions that these properties can configure weak suites, so review the list rather than only checking that it runs. Check the jdk.tls.disabledAlgorithms value in the java.security file on the runtime, since it lists the algorithms the runtime refuses, and note any that conflict with the chosen groups. This step is closed when the protocol and suite settings are recorded and TLS 1.3 is confirmed to remain enabled.
Test a connection to a known peer
Start a TLS connection from the service to a peer whose behavior you know, such as a test endpoint you operate or a peer whose hybrid support the vendor has documented. Enable JSSE debugging output, typically with the javax.net.debug system property, and run the handshake. Confirm that the client offers a hybrid key share alongside the classical x25519 key share, which the OpenJDK heads-up of 2026-05-17 describes for JDK 27. Then find the negotiated group in the handshake log and check that it matches the first group you expect the peer to accept. If the peer does not support a hybrid group, the log should show a classical group, and that is a valid result to record. This step is closed when the handshake log is saved with the negotiated group named.
Record the configuration and test evidence
Write down the evidence that the next reviewer will need. Record the java -version output, the exact jdk.tls.namedGroups value or the code change, the protocol and cipher suite settings, the java.security values checked, the peer used in the test, the date of the test, and the excerpt of the handshake log that names the negotiated group. Keep the full log in the evidence store with the same date. Note that a result only applies to the service, runtime, and peer that were tested, and that the setting may need retesting after an upgrade or a change to the peer. Ask the team that owns the change to confirm the record, since an auditor or assessor will check whether the evidence matches the running configuration. This step is closed when the record is stored and linked to the service's inventory entry.
What OpenJDK has not published or does not yet cover, and what to ask
The facts show that OpenJDK documents post-quantum key exchange and standalone algorithms in JDK 27, but several areas remain classical or undocumented. The cards below list each gap the sources support and the question to put to the OpenJDK project, your distribution vendor or your own test team before relying on a setting in production.
No ML-DSA in TLS signature schemes
The JDK 27 Standard Names specification lists 16 TLS signature schemes, covering ECDSA, EdDSA, RSA PKCS#1 and RSA-PSS variants. None of them is ML-DSA. This means a TLS server or client in JDK 27 cannot authenticate with an ML-DSA certificate through the documented signature schemes, even though standalone ML-DSA signing is available through the Signature API. Before planning a certificate change, confirm with the project or your distribution whether ML-DSA TLS signature schemes are on a dated roadmap and which release would carry them.
JDK 27 standard namesLTS roadmap without dates
Oracle's August 2026 Inside Java post describes a strategy and roadmap to bring standardized PQC algorithms and PQC-enabled TLS to current Long-Term Support releases. The facts give no dates, release numbers or feature lists for that roadmap. If your estate depends on an LTS upgrade to get post-quantum TLS, ask Oracle or your vendor for the specific release, the target date for each feature, and whether the commitment covers the patch releases you run.
Inside Java LTS postOlder LTS releases not named
The sources do not state which older LTS releases will receive PQC-enabled TLS. The JDK 24 specification documents standalone ML-KEM and ML-DSA, but the facts do not say that JDK 24 or any earlier LTS gets the hybrid TLS groups that JDK 27 enables by default. Operators running older LTS lines should not assume backports. Ask the project and your support provider in writing which releases get hybrid key exchange, which get only the standalone algorithms, and which get nothing.
No PQC in certificate path validation
The facts do not describe post-quantum support in jdk.certpath, the component that builds and validates certificate chains. The OpenJDK java.security file shows certpath rules for MD2, MD5, SHA-1, small RSA, DSA and EC keys, but no post-quantum entries. For a PKI that moves to ML-DSA or ML-KEM certificates, this means chain building and trust decisions cannot be assumed to work until tested. Ask the project whether certpath accepts ML-DSA certificates and how jdk.certpath.disabledAlgorithms should be set for them.
java.security fileHybrid groups must be enabled explicitly
The JDK 27 JSSE guide shows a client that prefers classical groups while enabling SecP256r1MLKEM768 on top of the default hybrid. Outside the default X25519MLKEM768, the other two hybrids in the Quality Outreach notice, SecP256r1MLKEM768 and SecP384r1MLKEM1024, are only used when named in jdk.tls.namedGroups or SSLParameters. Ask your vendor or test team to confirm which groups their service will actually negotiate, because a peer that does not offer the default group will fall back silently to a classical exchange.
Post-quantum questions about configuring Java and OpenJDK
Is OpenJDK 27 quantum safe?
OpenJDK 27 does not carry a quantum-safe label that this page can confirm, and no supplied source makes that claim. What the JDK 27 documentation supports is narrower: the SunJSSE provider negotiates hybrid TLS 1.3 key exchange that combines ML-KEM with classical ECDHE, and the JDK exposes standalone ML-KEM and ML-DSA through the KEM, Signature, KeyPairGenerator and KeyFactory APIs. TLS signature schemes in JDK 27 are still classical, so certificates and handshake signatures are not covered by these ML-DSA names. Whether a given deployment meets a policy or a standard is a question for your own assessment. Confirm the exact release and vendor build you run, since support differs by distribution.
Which Java version do I need for post-quantum algorithms?
Standalone ML-KEM and ML-DSA are documented from JDK 24, and the hybrid TLS groups are documented in JDK 27. The JDK 27 Standard Names specification lists ML-KEM-512, ML-KEM-768 and ML-KEM-1024, and ML-DSA-44, ML-DSA-65 and ML-DSA-87, with ML-KEM-1024 and ML-DSA-87 being the parameter sets CNSA 2.0 uses. The three hybrid groups, X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024, appear in the JDK 27 release. If you run an older LTS line, check whether the vendor has backported these; OpenJDK's 2026-08-07 post says the project plans to bring PQC algorithms and PQC-enabled TLS to current LTS releases, but it does not give dates in the sources listed here.
Does post-quantum support in Java cost extra?
The sources listed here describe the algorithms as part of the JDK itself, so the algorithms are not sold as a separate product in them. Your costs depend on what you change: moving to a JDK 27 build, retesting applications and peers, and updating configuration, which is largely one-time, and any ongoing support contract for the distribution you use. Ask your JDK vendor whether post-quantum support is included in your subscription, whether it is backported to your LTS line, and what they charge for extended support. DeployOpen does not publish prices, and a quote follows from a written scope.
What breaks when I enable hybrid TLS in Java?
Hybrid groups are only negotiated when both peers support them, so clients and servers that lack the groups fall back to classical key exchange. The risk is in middleboxes, older clients and peers that mishandle larger key shares, and in any settings you have pinned. Two things to check first: the jdk.tls.namedGroups property, which overrides the default group list when set, and the cipher suite and protocol properties, which you may have restricted. Also check that the configuration does not disable groups your peers need. Test the handshake against each peer class before rollout, using an illustrative staging environment that mirrors production.
What should I ask my Java vendor about post-quantum support?
Ask which exact JDK release and distribution includes ML-KEM, ML-DSA and the hybrid TLS groups, and whether those features are backported to the LTS line you run. Ask whether the TLS signature schemes will include ML-DSA, since the JDK 27 standard names list none, and when. Ask how they will document the default hybrid group, the jdk.tls.namedGroups behaviour and any changes to the default cipher suites. Ask for their support window and whether they will issue security advisories for post-quantum defects. Get the answers in writing and record the date, because roadmap statements change.
Can my team configure post-quantum algorithms in Java ourselves?
Yes, the configuration itself is modest: set jdk.tls.namedGroups to a quoted, comma-separated list in preference order, or call SSLParameters.setNamedGroups in code, and confirm the result with a handshake test. The harder parts are inventory, testing against real peers, and proving the change to an auditor. Your team can do this in-house if it has the time and someone who owns the Java runtime and the test environment. Outside help is useful when the estate is large, has many JDK versions, or requires evidence for an assessment. DeployOpen plans, implements and tests this kind of change inside client infrastructure on a fixed scope agreed in writing.
How do I turn on a hybrid group in Java 27?
Set the system property jdk.tls.namedGroups on the JVM, for example -Djdk.tls.namedGroups="X25519MLKEM768,secp256r1,x25519", listing groups in preference order. If the property is undefined or empty, the implementation default groups apply, and the default preferred group is X25519MLKEM768. To enable a hybrid group other than the default, list it explicitly, because the JDK 27 guide shows SecP256r1MLKEM768 must be enabled by name. Alternatively, call SSLParameters.setNamedGroups in application code. Verify the negotiated group by reading getNamedGroups() or by inspecting the handshake with your test client.
How DeployOpen works on this
DeployOpen helps teams turn on post-quantum settings in Java and OpenJDK services by scoping the exact JDK release, provider and TLS configuration in use, then building and testing the change in a staging environment before it reaches production. Each engagement ends with written configuration, test evidence and a handover your engineers can run without us.
How we scope
- We confirm which JDK release and vendor build each service runs, since ML-KEM and ML-DSA documentation starts at JDK 24 and hybrid TLS groups are stated for JDK 27.
- We list which services terminate TLS in Java, which use the SunJSSE provider, and which rely on keystores or signing that would need separate changes.
- We agree the written scope before work starts, including which hybrid groups are in scope and which peers must still negotiate with them.
How we build
- We set the named groups through the jdk.tls.namedGroups property or SSLParameters.setNamedGroups, in the order your policy requires, and record which option was chosen and why.
- We check the jdk.tls.disabledAlgorithms and jdk.tls.client.protocols settings so the change does not re-enable weak suites or older protocol versions.
- We test handshakes against each peer type in a staging environment, including the classical fallback path for clients that do not offer a hybrid key share.
How we hand over
- You receive the final configuration files, property values and code changes, with each setting tied to the JDK release it was tested against.
- The test record lists which handshakes succeeded or failed, including the classical x25519 fallback, so your team can repeat the checks after upgrades.
- We document which signature and certificate paths remain classical, since the JDK 27 TLS signature schemes listed do not include ML-DSA.
How we support
- Fixed-scope engagements close when the written deliverables are accepted, and ongoing support is available as a retainer for later JDK upgrades.
- A retainer can cover retesting after each JDK patch release, since default groups and keyLimits values may change between releases.
- Quotes follow from the written scope, so ask for the scope, deliverables and retesting terms in writing before comparing proposals.

