Quick revision
The short answer
I would start with an inventory of JDK versions and vendors per service, because what each JDK supports decides the work: recent JDKs already disable TLS 1.0 and 1.1 through jdk.tls.disabledAlgorithms, and TLS 1.3 is built into JDK 11 and later and was backported to some JDK 8 updates. Then I would ship the policy centrally, as a security property override and a company trust store in the base images, roll it out in waves with tests against older partners, handle the few partners that cannot upgrade as explicit, time-limited exceptions, and keep tracking versions so future patches can be applied fleet-wide.
What to remember
In this answer, we turned a TLS policy into a rollout. We saw that patched JDKs already disable TLS 1.0 and 1.1 through jdk.tls.disabledAlgorithms and that TLS 1.3 is available from JDK 11 and in later JDK 8 updates, with vendor-specific details. We inventoried the fleet, delivered the policy and a company trust store through base images, rolled out in waves with tests against older partners, handled the remaining partners as explicit, time-limited exceptions, and kept the version inventory live so the next patch is cheap.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
I would start with an inventory of JDK versions and vendors per service, because what each JDK supports decides the work: recent JDKs already disable TLS 1.0 and 1.1 through jdk.tls.disabledAlgorithms, and TLS 1.3 is built into JDK 11 and later and was backported to some JDK 8 updates. Then I would ship the policy centrally, as a security property override and a company trust store in the base images, roll it out in waves with tests against older partners, handle the few partners that cannot upgrade as explicit, time-limited exceptions, and keep tracking versions so future patches can be applied fleet-wide.
Why this question is asked
Security rules like this one are easy to write and hard to apply, because a platform with dozens of services rarely runs one Java. There are JDK 8 services nobody has touched in years, JDK 17 and 21 services from different teams, images from two or three vendors, and partners at the other end of connections who have their own constraints. Interviewers ask this at a senior level to see whether we can turn a policy into a safe rollout: what the JDK already does for us, where configuration should live, how to avoid breaking partners, and how to know when we are done. In this answer, we will look at what the JDKs do by default, how to deliver the settings centrally, how to roll out in stages, how to deal with partners, and how to keep the fleet patchable.
1A Quick Recap: How the JDK Chooses TLS Versions
Two separate settings decide which TLS versions a Java process uses. The first is the list of enabled protocols, which a client offers and a server accepts; it can be narrowed with the system properties jdk.tls.client.protocols and jdk.tls.server.protocols, or in code. The second is the security property jdk.tls.disabledAlgorithms in the java.security file under the JDK's conf/security directory. Anything listed there is refused no matter what the application enables. Security properties are a separate mechanism from system properties: they live in java.security and can be overridden with a file passed through -Djava.security.properties.
Since the April 2021 updates, the OpenJDK-based JDKs list TLSv1 and TLSv1.1 in jdk.tls.disabledAlgorithms by default, in JDK 16 and later and in the security updates of JDK 11 and 8. TLS 1.3 arrived in JDK 11 and was backported to JDK 8 in later updates, though on some JDK 8 builds it was initially off by default on the client side. The exact update numbers differ by vendor, so the vendor's release notes are the source of truth, not a blog post.
2Inventory the Fleet
Before changing anything, we need to know what runs where. Each service reports its java.version, java.vendor and java.runtime.version at startup, as a log line and as a metric label, and we combine that with the base image of each deployment. The result is a table that tells us which services are already compliant, which need only configuration, and which need a JDK upgrade.
| JDK line | TLS 1.0/1.1 | TLS 1.3 | Action |
|---|---|---|---|
| 25, 21, 17 (patched) | Disabled by default | Supported, preferred | Verify, ship central trust |
| 11 (patched) | Disabled by default | Supported | Verify, plan upgrade |
| 8, recent updates | Disabled by default | Backported; client default varies | Enable on client, plan upgrade |
| 8, old updates | Often still enabled | Not available | Upgrade the JDK first |
Any, custom java.security | Whatever was set | Whatever was set | Remove local overrides |
In a typical fleet the picture is reassuring: services on patched JDK 11, 17, 21 or 25 already refuse TLS 1.0 and 1.1 and negotiate TLS 1.3 when the peer supports it, so for them the rule is mostly about proof and central trust. The risk is concentrated in a few places: old JDK 8 updates without the backports, services that override java.security or enabled protocols in code, and libraries that bundle their own TLS stack.
3Deliver the Policy Through Base Images
The settings should not be copied into 40 repositories, because each copy drifts. Instead, the platform team owns a small set of base images, one per supported JDK line, and puts the policy and the trust store into them. Every service that builds from the base image gets the rule, and a change is one image release instead of 40 pull requests.
Notice that the override file replaces the value of jdk.tls.disabledAlgorithms entirely, so we start from the JDK's current list and add to it, otherwise we could accidentally re-enable something the JDK had disabled. The trust store is built in the image pipeline from the JDK's public cacerts plus the company's internal root CAs, so central trust management becomes a single artifact with an owner and a release history. TLS 1.2 stays enabled, because the rule says TLS 1.3 where possible, and many peers still only speak 1.2.
4Roll Out in Waves and Test the Edges
We roll the new images out in waves: internal tooling first, then a few low-risk services as canaries, then the rest, watching handshake failures per service after each wave. The most important tests are against the outside world, especially older partners whose servers may only speak TLS 1.0 or 1.1. When such a server meets our client, the handshake fails with an SSLHandshakeException whose message says no appropriate protocol is available, and that error should be visible in dashboards, not buried in a retry loop.
Before each wave, a simple integration check per outbound dependency answers the question cheaply: connect with the new image in staging and record the negotiated protocol and cipher. A list of partners that fail is then a known list of conversations to have, rather than a surprise in production.
5Handle Exceptions Explicitly
Some partner will not be able to upgrade this quarter. The worst response is a service quietly re-enabling TLS 1.0 in its own java.security, because that exception becomes invisible and permanent. A better response is a documented exception with an owner and an end date, and ideally an isolated path: one egress proxy that speaks the old protocol to that partner and modern TLS to us, so only one hardened component carries the risk and no JVM in the fleet has to weaken its settings. The exception list is reviewed monthly, and each entry has a ticket with the partner.
- Inventory JDK version and vendor per service
- Build base images with policy and trust store
- Test outbound partners in stagingrecord negotiated protocol
- Does a partner need TLS 1.0 or 1.1?YesDocumented exception via egress proxyNoProceed
- Roll out in waveswatch handshake failures
- Upgrade old JDKsno backports, no compliance
- Report compliance per service
7 steps in order. Play them, or step through them one at a time.
6Keeping the Fleet Patchable
The rule will not be the last one. Next year it may be a cipher suite or a post-quantum key exchange. What makes the next change cheap is the same inventory we built in step one, kept live: every service's JDK version and vendor reported continuously, a policy of staying within a few updates of the latest security release, and automated rebuilds when a base image changes. With that in place, the next security patch is a base image release and a dashboard showing which services have picked it up, instead of another archaeology project.
7Follow-up questions
Why not just set the protocols in each application's code?
Because code settings are scattered, easy to get wrong and invisible to the platform team. Setting enabled protocols in code also cannot override jdk.tls.disabledAlgorithms in the stricter direction for libraries that build their own SSLContext. Central security properties apply to every SSLContext in the JVM, which is what a rule like this needs.
How do you prove compliance?
Measure it from both sides: each service reports its JDK version and effective disabledAlgorithms value, and an external scan of each endpoint confirms it refuses TLS 1.0 and 1.1 and offers TLS 1.3. Outbound connections can be checked by logging the negotiated protocol on handshakes.
What about non-Java components in the path?
Load balancers, proxies and gateways often terminate TLS before the JVM ever sees it, so they need the same policy. The rule applies to every hop, and the inventory should include them.
8Conclusion
In this answer, we turned a TLS policy into a rollout. We saw that patched JDKs already disable TLS 1.0 and 1.1 through jdk.tls.disabledAlgorithms and that TLS 1.3 is available from JDK 11 and in later JDK 8 updates, with vendor-specific details. We inventoried the fleet, delivered the policy and a company trust store through base images, rolled out in waves with tests against older partners, handled the remaining partners as explicit, time-limited exceptions, and kept the version inventory live so the next patch is cheap.
Open with
I would start with an inventory, because the JDKs do a lot of this already. Since the 2021 security updates, OpenJDK-based JDKs list TLS 1.0 and 1.1 in jdk.tls.disabledAlgorithms in java.security, and TLS 1.3 is in JDK 11 and later and was backported to later JDK 8 updates, sometimes off by default on the client, so I would check each vendor's release notes.
Then, if they want more
So I would have every service report its Java version and vendor, and that tells me who is compliant, who needs configuration and who needs an upgrade.
Then I would deliver the policy centrally: base images per JDK line containing a security properties override, client protocols set to 1.3 and 1.2, and a company trust store built from the public CAs plus our internal roots. One image release then changes the whole fleet.
I would roll out in waves, test every outbound partner in staging and record the negotiated protocol, and watch handshake failures. Partners that only support old protocols get a documented exception with an owner and an end date, ideally through a single egress proxy, never by a service quietly re-enabling TLS 1.0.
Finally I would keep the version inventory live, so the next security patch is just a base image rollout.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Java 8, Java 11, Java 16, Java 17
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- The Java Language Specification, Java SE 21, Java SE 21 API documentation
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Your platform runs a mix of JDK versions from several vendors. A new security rule...": https://scrivio-interview-library.netlify.app/java/networking/fa80d37f55/