I’m worried like all of us right now. This article meant to give you some guidance and put the to-dos into context based on what we know and what we can technically do for Enterprise Java today.
On 2 December 2026, CISA, NSA and the Office of the National Cyber Director published a joint statement on advances in cryptography after AI companies disclosed discoveries affecting some cryptography already in use. The agencies called for faster upgrades and said the advances “do not present an immediate and widespread threat to that cryptography.” They named no affected algorithm or product. Asked which systems to treat as affected, Cloudflare CEO Matthew Prince replied on 3 December, “Assume anything that uses RSA or Elliptic Curve cryptography.” He later recommended following NSA guidance and moving to post-quantum cryptography. I use his assumption to decide which keys to inventory. The agencies haven’t said that someone can decrypt a particular connection or forge a particular signature.
Take an employee adding a dependent in a benefits portal. The browser sends the change to a public API. That evening a Java batch job sends the record to the insurer. Suppose it needs ten years of confidentiality. The gateway team owns the browser connection, but the file format is a decision for the Java engineer who writes it and the person at the insurer who has to open it. A gateway upgrade reaches only the first of those two places.
TL;DR
Start at the external boundary. Follow one sensitive request in and one transfer out. A partner’s private circuit belongs on that list. Bring forward any internal key that authorizes payments, issues credentials or approves production releases.
Give each key a job in the inventory. An RSA recipient key protects a file’s data key. An ECDSA key might authenticate the server that receives the file. Replacing one leaves the other in use.
Let the receiver tell you when you’re done. For TLS, that means the group the actual client and server negotiated. For a signed token, it means the API accepts it through the real gateway. For a partner file, I want the result from the importer.
Decide what needs to change
“We use RSA” doesn’t tell me whom to call. For a server certificate, I need the client owners. For the insurer’s file key, I need the importer owner. I also look for elliptic-curve uses by name. ECDH, including X25519, belongs under key agreement. ECDSA and EdDSA belong under signatures. NIST’s transition guidance covers both jobs.
Fix an existing weakness. A Java client that trusts every server needs certificate-chain and hostname verification. Give it a valid connection, an untrusted certificate and a certificate for the wrong host. Only the valid connection should succeed. If a listener accepts deprecated TLS 1.0 or 1.1, upgrade the clients that depend on those versions, then disable them. Neither fix needs to wait for post-quantum support.
Replace a public-key operation. For a TLS 1.3 connection using X25519 alone, the target is a supported hybrid group that adds ML-KEM. For an object signed with RSA or ECDSA, the signer and its verifiers need a common signature profile, such as one using ML-DSA. A larger RSA key or a fresh ECDSA certificate leaves the same quantum-vulnerable algorithm in place.
Keep a suitable data cipher. If the file already uses AES-GCM correctly and RSA protects its AES key, change how the recipient gets the key. Keep the approved content encryption. Password hashing, HMACs, key derivation, random generation and nonce handling each need an assessment of their own. NIST explains the quantum implications for symmetric cryptography.
Choose the first migration
I put the insurer’s file ahead of a public brochure site because the employee would feel the consequences of disclosure years from now. An internal release-signing key deserves the same attention if its holder can publish code to every customer. While the insurer tests its importer, the edge and Java teams can pilot hybrid TLS between the CDN and origin. Bring the identity team in early, too. Its last verifier to upgrade sets the earliest date the issuer can switch signatures.
For each connection, object or trust decision, my inventory names the current and target protection, the owner at each end, the oldest client or record we must support, and when the old option can go. “Vendor supports hybrid TLS” tells me to schedule a test. “Java client negotiated it on the origin hop” tells me which test passed. Leave unknowns visible. Use key identifiers and links to restricted evidence so the inventory contains no private keys or customer records.
Start with the connections that cross your boundary
For the benefits API, draw browser → CDN → gateway → Java listener. If the CDN terminates TLS, the browser authenticates the CDN, which becomes a client on the connection to the origin. A browser handshake tells you nothing about the group the CDN selected on that second connection. Cloudflare describes these hops separately. Add direct origins, alternate hostnames, pinned mobile clients, partner APIs, uploads, webhooks, WebSockets, gRPC and HTTP/3 wherever they take a different route or use a different client. Mark any leg that carries plaintext.
Outbound calls cross the same boundary in the other direction. Start with payment and SaaS APIs, cloud SDK destinations, object stores, identity discovery and token endpoints. The Java service may also send data through outbound webhooks, hosted AI services, mail relays, telemetry and support uploads. If a sidecar or egress proxy opens the last connection, its TLS settings govern the hop that leaves the organization. That’s where I look to see who verifies the destination.
For data that needs long-term confidentiality, choose a supported hybrid TLS 1.3 profile for each TLS hop. A TLS 1.2-only peer needs an upgrade first. What you do about older clients depends on who controls them. On a public website, prefer the hybrid group and measure fallback by client version. On a partner route, the two teams can agree that every transfer requires hybrid key exchange. Under that policy an incompatible client must fail. An HTTP 200 on that connection would be a reason to stop the rollout.
Administrators and suppliers also cross the boundary, often with permission to change production. Include VPNs, SSH/SFTP bastions, vendor support access, cloud and Kubernetes APIs, and application-server or JMX management endpoints. For SSH, the negotiated key exchange protects the session secret. Host keys and user authentication have their own migration paths, as OpenSSH’s guidance explains.
Verify what your Java client negotiates
Two local Java connections used the same localhost certificate, verified the hostname and reported TLS 1.3 with TLS_AES_256_GCM_SHA384. Both used AES-GCM to encrypt traffic, but they established their keys differently. The Temurin 25.0.4.1+1-LTS client and server negotiated x25519. Someone who captures that exchange and its traffic could use a sufficiently capable quantum computer to recover the X25519 secret and derive the traffic keys. The Homebrew OpenJDK 27.0.1.0.2 pair negotiated X25519MLKEM768, a hybrid group that combines X25519 with ML-KEM-768. Recovering the X25519 secret alone would leave the attacker without the ML-KEM secret needed to derive those keys. For ten-year confidentiality, I migrate the X25519-only hop first. I keep the hybrid group enabled. The agencies gave no attack details that would let us rank either group against their AI findings.
Use the vendor and full JDK build from the deployed image. Oracle JDK 25.0.5 added hybrid TLS 1.3 key exchange to JSSE and made X25519MLKEM768 its preferred group by default. Oracle JDK 21.0.13 added the ML-KEM and ML-DSA primitives. Oracle’s roadmap lists integrated hybrid TLS for JDK 21 as a first-half 2027 target. On Java 21, look for integrated TLS support in your provider’s release notes. If it ships only the primitives, a named-group setting won’t add the missing handshake support. For the version, configured providers and TLS defaults, use the application’s Java installation to run these commands on builds that support the security settings options.
java -version
java -XshowSettings:security:providers -version
java -XshowSettings:security:tls -versionThose are the defaults of a fresh JVM. The next question is who opens the connection in the running application. A Spring Boot client uses the SSL bundle applied to it. In Quarkus, the HTTP listener and gRPC client select their named TLS configurations independently. A managed JDBC data source may use its own truststore. With Netty, find out whether the client uses JSSE or native OpenSSL. For native executables, use the build and TLS libraries in the deployed image.
For an HTTPS listener you operate, substitute its DNS name below. The OpenSSL 3.5 or later test client offers one group and checks the server’s identity. For a private CA, add -CAfile with the approved CA bundle.
host=api.example.com
openssl s_client -connect "${host}:443" -servername "$host" \
-verify_hostname "$host" -verify_return_error -tls1_3 \
-groups X25519MLKEM768 -brief </dev/nullWith both Verification: OK and Negotiated TLS1.3 group: X25519MLKEM768, you know the listener accepted that group from OpenSSL. Java gets its own test with the application’s normal group settings. In a JSSE test deployment, enable -Djavax.net.debug=ssl:handshake and send one synthetic request from a fresh client. The selection is in the full handshake’s final ServerHello → key_share → server_share → named group. If a proxy or native engine opens the connection, use its diagnostics.
I keep the group and the authentication algorithm side by side. In a certificate-authenticated TLS 1.3 handshake, the peer signs the handshake in CertificateVerify, and the CA signs the certificate. “Hybrid key exchange, ECDSA handshake signature” tells the next engineer which protection this client negotiated and why the certificate infrastructure and its relying clients have a separate migration ahead.
Follow the file after the connection closes
Suppose the Java job sends our eligibility file over SFTP using Cryptographic Message Syntax (CMS). The sender encrypts the contents with AES-GCM, protects the AES key for the insurer using RSA key transport, and signs the file. An SSH upgrade protects the next transfer. Yesterday’s file would also yield its contents to someone who captured it and later recovered its AES key from the RSA recipient entry. That’s the harvest-now, decrypt-later risk.
The recipient key is the part I’d change. Keep the approved AES-GCM content protection. Once both products and their key-storage devices support the CMS ML-KEM recipient mechanism, the sender derives a wrapping key from the shared secret and uses it to protect the AES key. Both teams need an agreed way to authenticate the insurer’s new public key and its replacements, such as a certificate chain the sender already trusts.
“Upload complete” is where the insurer’s test starts. Give the partner a synthetic file to decrypt with its deployed importer version and have it verify the sender’s signature. The signature can move separately when both sides support the CMS ML-DSA profile. If the importer needs a vendor upgrade, agree which optional fields to omit and which extra copies to stop retaining in the meantime.
Every recipient entry counts. I want to see the insurer’s authenticated key ID on the new file and know what other keys would open it. If ML-KEM and RSA entries protect the same AES key, either mechanism opens the file. Remove the RSA entry from new files before counting them as migrated. Older files need a controlled reader for as long as you have to retain them.
The same sender-and-reader question applies to OpenPGP, AS2/EDI, S/MIME, signed PDFs, XML and SOAP/WS-Security. Mail adds three distinct dependencies in transport TLS, content protection and DKIM signing. For signed documents, the archive owner also needs a way to verify the signature, timestamp and certificate history years later.
Change what the application trusts
The insurer verifies who signed the file. The benefits API makes a similar decision when it accepts an access token. Suppose an RS256 token expires after five minutes. The holder of the signing key can issue another as long as services trust that key. Before changing the issuer, I want to know who holds its key, every service that accepts its signatures, which algorithms each verifier allows, and how it refreshes cached public keys. For a controlled integration moving to ML-DSA, the HSM needs to sign with it, and the identity provider, Java JOSE library and every verifier need the signature and public-key formats in the ML-DSA profile for JOSE and COSE.
Even an API gateway that just forwards the token needs room for it. An ML-DSA-65 signature is 3,309 bytes. In a compact JWS, the signature alone takes 4,412 Base64url characters before the header and claims. Send a complete token in the header or cookie your client actually uses. A Java unit test can verify the signature while the gateway rejects the request on size alone.
Upgrade the verifiers first and distribute the new public key. Exercise key discovery and rollover with explicit allowed algorithms for each issuer and token type. The API must accept an access token issued for its audience and reject a wrong audience or disallowed algorithm under the JWT validation guidance. Once all consumers accept the new key, stop signing with the old one. Its public key stays available until the last token signed with it expires, allowing for clock skew. Withdraw it then, and confirm rejection even on verifiers that cached the old key.
Identity and sessions. Who verifies the credential? For OIDC client assertions and proofs of possession, SAML messages and metadata, passkeys, smart cards and client certificates, that question leads to enrollment and recovery as well as login. LDAP/StartTLS, Kerberos keytabs and certificate-based initial authentication have their own dependencies. For API keys, cookies, reset links, signed URLs and webhooks, start with what the recipient accepts. An opaque lookup token leads to the session store. For an encrypted token, JWE distinguishes key management from content encryption.
PKI and key custody. Replacement roots and intermediates have to reach clients, including clients with pins or private truststores. Rehearse enrollment, renewal, revocation and trust-anchor distribution. For KMS, HSMs, Vault and PKCS#11 providers, I ask for the release, service tier, firmware and module that perform our operation with our non-exportable key. Include the validated mode if you require one. The joint ASD, CISA and NSA vendor questions help pin that down to a configuration you can test.
Software and hardware delivery. Start at the policy that admits a release to production. With Sigstore identity-based verification, the policy names the signer identity and issuer it accepts. From there, I follow how CI obtains that identity and which signatures the build or deployment enforces across Git, Maven or Gradle repositories, signed JARs and the container registry. For secure boot, firmware, TPM-backed attestation and field devices, the decisive question is how the installed verifier accepts an update to its trust chain. A fixed hardware verifier without the target algorithm needs a replacement.
Carry the migration into internal systems and recovery
Inside the benefits service, the dependent’s record reaches the database, event stream, logs and backups. In the Java repository, SSLContext, TrustManager, KeyStore, Cipher, Signature and KEM are good search terms. The deployed configuration fills in what the source leaves out. Look in provider dependencies, application-server settings, deployment manifests and mounted truststores. Java source won’t show TLS that a sidecar terminates or encryption the managed service applies after it receives the record.
Service traffic and data platforms. For REST, gRPC and mesh mTLS, identify the workload certificate and where encryption ends, including the final hop from a sidecar to the process or a hop across clusters. Include DNSSEC or DANE where they supply trust. With JDBC and reactive clients, open a fresh connection through the deployed pool or proxy, then try the failover host. In pgJDBC, sslmode=require accepts any server certificate, while verify-full validates the chain and hostname. Replication, change-data capture and ETL open their own connections. The same applies when a broker forwards the record. For Kafka, JMS/MQ and AMQP systems, include client listeners, brokers, controllers, schema registries and connector destinations as applicable. Kafka distinguishes authentication from transport encryption. A producer login tells you little about the connector’s outbound session. For caches, search and session replication, include inter-node traffic and snapshots.
Stored data and keys. Start where the application encrypts or decrypts a field, such as a JPA converter or client-side SDK. Follow that field into encrypted columns and blobs, database and volume encryption, and object-storage versions. For each envelope, note its format version, content cipher, key identifier, wrapping mechanism and readers. Deploy readers for both formats before switching writers. Rewrap a secret data key if only its wrapping mechanism needs replacing. If someone obtained the data key, use a fresh key and re-encrypt the affected data. Automatic rotation in AWS KMS leaves existing data keys and ciphertext as they were.
Copies and recovery. Once the new writer is live, older formats survive in snapshots, tapes, immutable backups and cross-account replicas. Other copies turn up in retained events, dead-letter queues, log and trace exports, support bundles and heap dumps. A heap dump may hold the plaintext the application read from an encrypted column. Remove copies nobody needs. For the rest, ask the recovery team to open the oldest required format using the keys and tools available in the recovery region. Test rollback after the new writer has produced records, when the previous release has to read them.
Decide when you can retire the old option
Transport. A warm pool can hide a broken handshake until the first reconnect. Exercise fresh and resumed sessions, pool replacement, the oldest supported client and the failover route. Watch the negotiated group and fallback count as well as connection failures, handshake latency and timeouts.
Signatures. Put a complete signed message through the normal delivery path and exercise rollover under the load the HSM must handle. The quarterly job belongs in that test even if it never appears in this week’s logs. After retirement, a verifier that accepts the old key is a reason to keep the change open.
Stored data. Write a record in the new format, interrupt and resume a migration batch, then restore a historical backup. Keep the legacy reader for as long as a required restore depends on it.
For the benefits service, I’d sign off the browser-to-CDN hop once the intended clients negotiate the hybrid group and each remaining fallback has an approved exception. The insurer’s file needs a different piece of evidence. Take one from the production writer, inspect its recipient entries and have the insurer open it. If the old RSA entry is there, leave that migration open.



