The mutual part of a TLS 1.3 handshake
- 1Client → ServerClientHello
- 2Server → ClientIts certificate, asks for yoursCertificateVerify proves the server's key
- 3Client → ClientCheck server chain
- 4Client → ServerClient certificate and proofCertificateVerify needs the private key
- 5Server → ServerCheck chain and identity
- 6Client → ServerEncrypted data, both ways
The client sends ClientHello. The server sends its certificate with a signature proving its key, and requests a certificate from the client. The client verifies the server's chain, then sends its own certificate and a CertificateVerify signature. The server verifies the client's chain against the roots it trusts and checks the client identity against its policy. Encrypted data then flows both ways.
Ordinary TLS, the protocol behind HTTPS, answers one question: is this really the server I meant to reach? The server presents a certificate, the client checks it, and the client stays anonymous at the transport layer. Mutual TLS adds the reverse check. The server also requests a certificate from the client, so by the end of the handshake each side knows who the other is.
How mTLS works
In TLS 1.3 (RFC 8446) the handshake runs like this, with the mutual part marked:
- The client sends
ClientHellowith its supported ciphers and key shares. - The server answers with
ServerHello, then, encrypted: aCertificateRequest, its ownCertificate, aCertificateVerifysignature proving it holds the matching private key, andFinished. - The client verifies the server’s certificate chain.
- The client sends its own
Certificateand aCertificateVerifysignature, then itsFinished. - The server verifies the client’s chain against the roots it trusts and checks the client identity against its policy.
- Encrypted application data flows in both directions.
Step 4 is what proves identity. A client cannot produce CertificateVerify without
the private key that matches its certificate. Copying the certificate alone
is useless.
Trying it with curl
curl --cert client.pem --key client.key \
--cacert ca.pem \
https://ledger.internal.example/health
The server, for its part, is configured with the CA it trusts for client certificates and a rule for which client identities it accepts.
mTLS vs TLS at a glance
| TLS | mTLS | |
|---|---|---|
| Server authenticated | Yes | Yes |
| Client authenticated | No (left to the application) | Yes, by certificate |
| Client needs a private key | No | Yes |
| Typical use | Browsers to websites | Service to service, devices, partner APIs |
| Operational cost | One certificate per server | One certificate per client too |
Where mTLS fits
Service-to-service traffic. This is the main use today. Each service holds a short-lived certificate naming its identity, often a SPIFFE ID carried in an X.509-SVID. Services authorize peers by that identity instead of by IP address, which is a core step toward zero trust authentication.
What sits under a service-to-service call
- Application dataEncrypted requests in both directions
- Peer authorizationAllow or refuse by identity, not IP address
- mTLS handshakeEach side proves it holds its private key
- CertificateShort-lived, often an X.509-SVID naming a SPIFFE ID
- Trust rootThe CA each side checks the other's chain against
Five layers from top to bottom. Application data flows encrypted both ways. Authorization allows or refuses the peer by its identity, not its IP address. The mTLS handshake has each side prove it holds its private key. The certificate is short-lived and often an X.509-SVID naming a SPIFFE ID. The trust root is the CA each side checks the other's chain against.
OAuth client authentication. RFC 8705 defines two uses of mTLS in OAuth 2.0: authenticating a client to the token endpoint with its certificate, and binding issued access tokens to that certificate so a stolen token is useless without the key.
Devices and partners. IoT devices and B2B integrations use client certificates where a shared API key would be too easy to leak.
mTLS is one option among several. Machine-to-machine authentication methods, compared, shows where API keys, client assertions and tokens fit instead.
Pitfalls
- Trusting the whole CA. If any certificate from your internal CA is accepted, every workload can call every other. Check the peer identity, not just the chain.
- Reading the wrong field. Authorize on the URI or DNS subject alternative name your scheme defines, not on the Common Name.
- Long-lived certificates. A one-year client certificate is a one-year secret. Automate issuance and rotate in hours or days.
- Rotation that breaks connections. Clients should pick up a renewed certificate on their next connection, and servers should accept peers issued under a new root during a rotation window.
- TLS termination in the middle. A load balancer that terminates TLS ends the mutual authentication there. Either re-establish mTLS to the backend or carry identity in a signed token.
- Plaintext fallback. A client that silently retries without TLS when the handshake fails defeats the purpose.
How QuorumAuth handles mTLS
QuorumAuth uses mTLS between workloads and toward its own services, with certificates issued by its SPIFFE authority. In its tested behaviour:
- A cross-node mTLS handshake succeeds under the shared trust root, and a certificate from a foreign root is rejected.
- The mTLS client presents the rotated workload identity on its next connection, and servers accept peers issued under a rotated trust root.
- A peer is derived within the caller’s own organization; a peer path cannot choose a different organization.
- The SDK’s managed workload transport refuses a plaintext connection to QuorumAuth, refuses a QuorumAuth name in another trust domain, and refuses a different service name in its own organization.
- An mTLS-terminating sidecar lets an application send plaintext over loopback while the sidecar presents its live identity to the upstream. gRPC traffic negotiates HTTP/2 through it.
- A workload can obtain a scoped access token over mTLS; a client certificate the server does not trust is refused at that step.
Together, these give you zero trust service authentication, where every call carries an attested identity.
Frequently asked questions
What is the difference between TLS and mTLS?
In ordinary TLS only the server presents a certificate. In mTLS the server also asks the client for one, and both sides verify each other.
Does mTLS replace access tokens?
No. mTLS authenticates the connection. Tokens carry scopes and survive hops that terminate TLS. Most systems use both.
Is mTLS the same as zero trust?
mTLS is one building block. Zero trust also needs per-request authorization, short-lived credentials, and continuous verification.
Why do mTLS rollouts fail?
Usually certificate lifecycle. Manual issuance and rotation do not scale; automated short-lived certificates do.