CertHaloSSL expiry monitoring · by IncubXperts

mTLS explained: client certificates, service meshes and SPIFFE

How mutual TLS works, when to use a service mesh, SPIFFE or plain client certificates, why public CAs stopped issuing them, and how mTLS setups break.

CertHalo team7 min read

In ordinary HTTPS, only the server proves who it is. Mutual TLS (mTLS) adds the other direction: the client presents a certificate too, and the server checks it before the connection goes any further. It's the basis of "zero trust" networking between services, and a long-standing way to secure partner APIs and devices.

This post explains how mTLS works, the three common ways to run it, an important 2026 change for anyone using public certificates as client certificates, and the places mTLS setups usually break.

How mTLS works

In a normal TLS handshake the server sends its certificate and the client checks it. With mTLS, the server also sends a certificate request, and the client replies with its own certificate and a signature proving it holds the matching private key. The server checks that certificate against the CAs it trusts for clients.

After the handshake, both sides know who they're talking to, and the identity comes from a key that never crosses the network, not from a password or token that could be copied from a log.

Two things to keep in mind:

  • Authentication isn't authorization. mTLS tells the server who the client is. Your application (or mesh policy) still has to decide what that client may do.
  • Clients need the right certificate. A client certificate should carry the TLS client authentication extended key usage, and its chain has to lead to a CA the server trusts for clients, which is usually not the same list it trusts for websites.

Where mTLS is used

  • Service-to-service traffic inside a platform, so a compromised pod can't simply call any internal API.
  • Partner and B2B APIs: banks, payment networks and open banking schemes commonly require client certificates from partners.
  • Devices and IoT, where each device gets its own certificate at manufacture or enrolment.
  • Admin and internal tools, as a second factor in front of the login page.

Public CAs no longer issue client certificates

For years, some teams used ordinary public certificates (from Let's Encrypt and others) as client certificates, because they included both the server and client authentication usages. That's over.

Chrome's root program now requires public TLS certificate hierarchies to be used for server authentication only, so public CAs are removing client authentication from their certificates. Let's Encrypt's timeline:

Date Change
11 February 2026 Default certificates no longer include client authentication
8 July 2026 The last option for client-authentication certificates (the tlsclient profile) is withdrawn

If anything in your estate uses a publicly issued certificate as a client certificate (server-to-server federation, a partner API, a device), it will fail on its next renewal, or already has. The fix is a private CA for client certificates, which is what mTLS should use anyway: you decide who gets a certificate, not the public internet. See how to build a private PKI.

Three ways to run mTLS

1. A service mesh: mTLS without touching application code

Meshes such as Istio and Linkerd put a proxy next to each workload. The proxies get certificates automatically, encrypt and authenticate traffic between services, and enforce policies like "only the orders service may call payments".

  • Certificates are short-lived and automatic. Workload certificates typically last about 24 hours and are renewed well before they expire.
  • The application doesn't change. It talks plain HTTP to its local proxy.
  • The cost is running the mesh: extra components, more resources, and a new layer to debug.

What you still own: the mesh's root or intermediate CA. Meshes generate a self-signed root on install unless you plug in your own, and that root has an expiry date too.

2. SPIFFE and SPIRE: workload identity across platforms

SPIFFE is an open standard for naming workloads, and SPIRE is its reference implementation. Each workload gets an identity like:

spiffe://example.com/ns/production/sa/payments

SPIRE checks what a workload really is (its Kubernetes service account, cloud instance or process), then issues it an X.509-SVID: a short-lived certificate (one hour by default) with that identity in the URI subject alternative name. Workloads fetch and renew it through a local API, without any secrets baked into images.

SPIFFE fits when you need the same identity system across Kubernetes, virtual machines and several clouds, or when you want mesh-style identity without a full mesh. Istio and other meshes can use SPIRE as their certificate source.

3. Plain client certificates from your own CA

For a handful of services, partner integrations or devices, a private CA and your web server's built-in mTLS support are often enough. In Nginx:

server {
    listen 443 ssl;
    ssl_certificate         /etc/ssl/api.example.com/fullchain.pem;
    ssl_certificate_key     /etc/ssl/api.example.com/privkey.pem;

    ssl_client_certificate  /etc/ssl/clients/client-ca.pem;  # CAs trusted for clients
    ssl_verify_client       on;
    ssl_verify_depth        2;

    location / {
        proxy_set_header X-Client-DN $ssl_client_s_dn;
        proxy_pass http://app;
    }
}

Test it with curl:

curl --cert client.crt --key client.key https://api.example.com/health

Issue client certificates from step-ca, Vault or cert-manager, so they're short-lived and renewed automatically, rather than by hand.

Which one?

Service mesh SPIFFE/SPIRE Your own CA
Best for Many services in Kubernetes Identity across clusters, VMs and clouds A few services, partners, devices
App changes None Some (or via a proxy) Server config; clients load a certificate
Certificate lifetime Hours Hours Your choice: keep it short
Effort High to run Medium to high Low to start

Where mTLS breaks

Long-lived client certificates expire

The most common mTLS outage isn't an attack; it's a client certificate issued for two or three years, handed to a partner or installed on a device, and forgotten. When it expires, the integration stops, often at night, and the error on the server side just says the handshake failed. Partner and device certificates need an owner, an inventory entry and a renewal date.

The CA rotates and clients don't get the new bundle

Changing the CA that signs client certificates is a three-step process: add the new CA to every server's trusted bundle, then start issuing from it, and only then remove the old one. Doing it in the wrong order locks out every client at once.

TLS is terminated before your application

If a load balancer, CDN or ingress terminates TLS, your application never sees the client certificate. Either the load balancer verifies it (AWS Application Load Balancer, Cloudflare and others support mTLS) and passes details in a header, or you pass TLS through untouched. If you rely on a header such as Envoy's X-Forwarded-Client-Cert, make sure the proxy removes any copy sent by the client, or anyone can claim any identity.

Missing intermediates and wrong usages

A client that sends only its own certificate, without the intermediate, fails against servers that don't have the intermediate already. A certificate without the client authentication usage is rejected by strict servers. Check both with:

openssl x509 -in client.crt -noout -subject -issuer -enddate -ext extendedKeyUsage

Clock skew

Short-lived certificates make clocks matter. A device whose clock is ten minutes behind rejects a certificate issued a minute ago as "not yet valid". Keep NTP running everywhere, and issue certificates valid from a few minutes in the past.

Keeping track of mTLS certificates

With mTLS you have more certificates, in more places, and many of them never appear on a public website:

  • Server certificates on the APIs your partners call.
  • Client certificates you've issued to partners, devices and services, and the ones partners issued to you.
  • CA certificates: your client-authentication CA, your mesh's root, and the trust bundles on every server.

Mesh and SPIRE certificates rotate themselves; what usually fails is everything around them. CertHalo watches the server side, including servers that require a client certificate: it reads the certificate they send before they ask for one. It checks your public API hostnames from outside, and internal endpoints from inside your network with open-source CertHalo agents, with alerts by email, Slack, Microsoft Teams or webhook before anything expires. Use your private CA's issuance log for the client certificates, and give each one an owner and a renewal date.

Monitor 3 certificates free, or check a server with the free SSL checker.

Key takeaways

  • mTLS makes the client prove its identity with a certificate, as well as the server.
  • Public CAs have stopped issuing client-authentication certificates; Let's Encrypt's last option ended on 8 July 2026. Use a private CA.
  • Use a service mesh for many services in Kubernetes, SPIFFE/SPIRE for identity across platforms, and your own CA for a few services, partners and devices.
  • mTLS outages usually come from expired long-lived client certificates, CA rotations done in the wrong order, and proxies that drop or forge client identity.

Sources

Check your certificate now

See when it expires, who issued it, whether the chain is complete and if it's been revoked. Free, no sign-up.

Want a reminder before it expires? Monitor 3 certificates free.

More from the blog