Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Certificate lifetimes keep getting shorter and post-quantum algorithms are being added to JDKs. Over the next several years, how should your organisation manage TLS and cryptography in Java services?

Over the next years we should treat certificates and cryptography as things that change constantly, not as one-off configuration. That means automating certificate issuance and rotation end to end, making every service reload certificates without a restart, keeping cryptographic settings in a central place so an algorithm change is a platform release rather than a code change in every service, tracking JDK support for new algorithms such as ML-KEM and ML-DSA, and building an inventory of where cryptography is used so the move to post-quantum algorithms can be planned instead of rushed.

Why this question is asked

Two trends are converging on every Java platform. Public certificate lifetimes are shrinking, with the browser industry's schedule taking them from over a year down to 47 days by 2029 (check the current schedule), and internal CAs are already issuing certificates that live for days. At the same time, post-quantum cryptography, algorithms designed to stay secure against future quantum computers, is moving from research into standards and into the JDK itself. Interviewers ask a question like this at the principal level to see whether we can build a strategy that survives several years of change. In this answer, we will look at what changes and why, then at automation, reload, central configuration, JDK tracking and inventory, and at how to sequence the work.

1A Quick Recap: What Is Changing and Why

Shorter lifetimes reduce the damage of a stolen key and make revocation, which has never worked well, less important. But a certificate that lives 47 days must be renewed roughly every month, and one that lives three days must be renewed constantly. Any manual step, a ticket, an email reminder, a person copying files, becomes an outage waiting to happen.

Post-quantum cryptography addresses a different threat. A large enough quantum computer could break today's public-key algorithms, RSA and elliptic curves, which TLS uses for key exchange and signatures. Nobody can do that today, but traffic recorded now could be decrypted later, a risk called harvest now, decrypt later. NIST has standardised replacements: ML-KEM for key exchange and ML-DSA for signatures. Recent JDKs added APIs for both, in JDK 24 as I understand it, so they are available in Java 25, and hybrid post-quantum key exchange in TLS itself is arriving in newer JDKs; check your version for what is enabled by default.

2Automate Issuance and Rotation Completely

The first principle is that no human is involved in renewing a certificate. For public endpoints, that means the ACME protocol, which Let's Encrypt and most public CAs support, run by the load balancer, the ingress controller or a tool like cert-manager. For internal traffic, it means an internal CA with an API, such as a Vault PKI engine or the CA built into a service mesh, issuing short-lived certificates to workloads automatically based on their identity.

A good test of the automation is to make certificates shorter on purpose in staging. If a platform cannot run with one-day certificates in staging, it will not run with 47-day certificates in production without someone getting paged. Every renewal also needs a margin: renew at two thirds of the lifetime, so there are days to fix a failure before anything expires.

3Reload Without Restart, Everywhere

Automation is useless if services only read certificates at startup. Every service must pick up new certificates while running, in one of two ways. Either the framework reloads them, as Spring Boot SSL bundles with reload-on-update do for supported embedded servers, plus a reloading key manager for clients, or a sidecar proxy terminates TLS and rotates certificates on the service's behalf, so the Java process never handles them. For a large, mixed-language fleet the sidecar route is often simpler, while for a smaller Java-only platform framework reload with good monitoring is enough. What matters is choosing one per environment and testing it continuously.

4Keep Cryptographic Configuration Central

The second big principle is crypto agility: the ability to change algorithms without touching every service. If 120 services each hard-code a cipher list, a key size or a signature algorithm, migrating to post-quantum algorithms is 120 projects. If they inherit settings from a few central places, it is a few releases.

Step throughWhere cryptographic decisions live
  1. Application codeasks for 'sign' or 'encrypt', never names an algorithm
  2. Shared librariesHTTP client defaults, company crypto helper, token validation
  3. Base imagesjava.security overrides, trust stores, JDK version
  4. Platformservice mesh mTLS, ingress TLS, internal CA, key management
  5. Policyapproved algorithms, lifetimes, owners and review dates

5 layers, from the top down. Step through them one at a time.

Changes should happen in the lower layers, so services inherit them.

In practice that means the algorithm policy lives in security property overrides in base images, TLS settings live in a shared HTTP client library or the mesh, token signing algorithms are configured in the identity provider and read from published key sets rather than compiled in, and application code calls a company crypto library for anything else, such as encrypting a field, instead of choosing algorithms itself.

5Inventory Cryptography and Plan the Migration

We cannot migrate what we cannot find. A cryptographic inventory, sometimes called a cryptography bill of materials, lists every place we use cryptography: TLS endpoints and the libraries behind them, mutual TLS between services, JWT signing keys and their algorithms such as RS256, data encrypted at rest and how long it must stay secret, signatures stored in databases or documents, keys in HSMs and cloud key management, and third-party SDKs that do their own crypto. Each entry gets an owner and a note on how hard it is to change.

The inventory then drives the order of work. Key exchange for traffic that carries long-lived secrets comes first, because of harvest now, decrypt later, and it is also the easiest, since hybrid key exchange can be turned on in TLS stacks as they support it, often at the edge before the JDK. Signatures come later, because a signature only has to resist attacks while it is being verified, and because certificate ecosystems for post-quantum signatures are still maturing. Data at rest encrypted with symmetric algorithms such as AES-256 needs little change.

A sequenced plan
HorizonFocusOutcome
NowAutomate all issuance and renewal; reload without restartNo certificate outage from lifetimes
NowCentral crypto config; JDK version inventoryAlgorithm changes are platform releases
1 to 2 yearsCrypto inventory with ownersKnow what must migrate and in what order
1 to 2 yearsHybrid PQ key exchange at the edge and meshRecorded traffic protected
3 to 5 yearsPQ signatures as ecosystems matureFull migration, old algorithms retired

6Tracking the JDK and the Ecosystem

Finally, someone must own watching the ecosystem. Each JDK release note lists new algorithms, newly disabled ones and changed defaults; the platform team should read them and decide which upgrades the fleet needs and when. Staying on a recent LTS, Java 25 today, is part of the security strategy, because new algorithms rarely get backported. The same applies to the other stacks in the path: load balancers, the service mesh, client libraries and partner endpoints. A short internal note per quarter, what changed, what we enabled, what is next, keeps the organisation's understanding current without making everyone a cryptographer.

7Follow-up questions

Should teams start using ML-KEM directly in application code now?

Usually no. Application code should not choose algorithms at all. The practical path is to enable hybrid post-quantum key exchange in TLS at the platform layers as they support it, and to keep application crypto behind a company library so that when it changes, it changes once.

What is the biggest risk in shrinking certificate lifetimes?

Hidden manual steps. Certificates pinned in a mobile app, a partner who installs our certificate by hand, an appliance that only accepts uploads through a web page. The inventory should flag every such place so it can be automated or redesigned before lifetimes shrink.

How do you justify the investment?

With incident data and dates. Count outages caused by expired certificates, show the industry lifetime schedule, and estimate the manual renewals that would be needed at 47 days. The cost of automation is small compared with renewing every certificate by hand about eight times a year.

8Conclusion

In this answer, we saw that shrinking certificate lifetimes and post-quantum cryptography both push us towards treating cryptography as something that changes routinely. We automate issuance and rotation completely, make every service reload certificates without restarting, through the framework or a sidecar, keep cryptographic configuration in central layers so services inherit changes, track JDK support for new algorithms such as ML-KEM and ML-DSA, and build a cryptography inventory that sequences the migration, starting with key exchange for long-lived secrets.

What to say in the interviewAbout 80 seconds aloud

Open with

I would build the strategy around the idea that cryptography will keep changing, so changing it must be cheap. First, certificate lifetimes are heading to around 47 days for public certificates, and internal ones are already days, so issuance and renewal must be fully automated, with ACME at the edge and an internal CA with an API for workloads, renewing at two thirds of the lifetime.

Then, if they want more

Second, every service must reload certificates without a restart, either through the framework, like Spring Boot SSL bundles with reload, or through a sidecar that terminates TLS.

Third, crypto agility: algorithm choices live in central places, java.security overrides in base images, shared client libraries, the mesh and the identity provider, so an algorithm change is a platform release, not a change in a hundred services.

Fourth, we track JDK support; recent JDKs added ML-KEM and ML-DSA, and hybrid post-quantum TLS is arriving, so staying on a recent LTS matters, and I would check the exact version for each feature.

Finally, I would build an inventory of where we use cryptography, with owners, and use it to sequence the migration: hybrid key exchange first for traffic with long-lived secrets because of harvest now, decrypt later, and post-quantum signatures later as the ecosystem matures.

About this answer

Last updated
12 November 2026
Versions it names
Java 25, Java 24
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.
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 "Certificate lifetimes keep getting shorter and post-quantum algorithms are being added...": https://scrivio-interview-library.netlify.app/java/networking/46806f0c54/