Client certificate chains and the EKU verdict
EKU sets the purpose
Extended Key Usage lists OIDs for the purposes a certificate may serve. A mutual-TLS client certificate needs clientAuth (1.3.6.1.5.5.7.3.2); a server certificate needs serverAuth. One certificate can carry both, but narrowing the purpose is the principle.
| EKU | OID | Purpose |
|---|---|---|
| clientAuth | 1.3.6.1.5.5.7.3.2 | Mutual TLS client authentication |
| serverAuth | 1.3.6.1.5.5.7.3.1 | TLS server authentication |
| codeSigning | 1.3.6.1.5.5.7.3.3 | Signing executable code |
| emailProtection | 1.3.6.1.5.5.7.3.4 | S/MIME |
| OCSPSigning | 1.3.6.1.5.5.7.3.9 | Signing OCSP responses |
An EKU that omits clientAuth stops the server from using the certificate for client authentication. An absent EKU, by contrast, restricts nothing and can pass. Not telling those apart produces the familiar "I added an EKU and now it is refused".
KeyUsage matters too
KeyUsage restricts cryptographic operations. TLS client authentication signs the handshake, so it needs digitalSignature. An RSA server certificate that does key transport also asserts keyEncipherment. For a CA, keyCertSign and cRLSign are the point.
- Client certificate: digitalSignature (required); keyAgreement for ECDH families
- Server certificate: digitalSignature, plus keyEncipherment for RSA
- CA certificate: keyCertSign and cRLSign
SAN and SPIFFE IDs
The value a server matches a client against is in SAN. DNS names separate services, and URIs express workload identity. In a SPIFFE deployment the URI SAN takes the form spiffe://trust-domain/workload/path and the server compares that string.
This page labels any URI SAN that starts with spiffe:// as a SPIFFE ID. Wildcard DNS is rare in client certificates and is called out when present; an IP SAN is valid for an administrative API reached by address.
Chain and pathLen
Verification walks from the leaf's issuer up to a parent subject, matching names and keys. AKI and SKI are compared when present, and the parent must be a CA with keyCertSign, within its pathLen, and valid at the same time.
Three accidents are common: the intermediate is not sent so the chain breaks, the intermediate expired while only the leaf was renewed, and a CA certificate carries a clientAuth EKU that restricts the certificates below it. All three are reported as findings.
Expiry is compared in UTC. A remaining count of 0 days still means valid before notAfter.
Questions
If there is no EKU at all, is clientAuth missing?
By specification an absent EKU means no restriction, so the certificate can be used for client authentication. Policies should still state it, and this page reports a missing EKU as a note.
Is a SAN required, or is CN enough?
When a server matches a client it uses SAN. A certificate with only a CN may be refused depending on the matching rule, so put a DNS or URI SAN in it.
Where is a SPIFFE ID used?
As a URI SAN in the form spiffe://trust-domain/path, identifying a workload. Service meshes and cloud workload identity use it as the subject of client certificates.
Paste a client chain and each certificate is judged for EKU, SAN and chain links.
Open the toolThis article follows RFC 5280 (X.509), RFC 8446 (TLS 1.3), RFC 5246 (TLS 1.2), RFC 6125 (host name verification), RFC 6960 (OCSP), the CRL distribution points of RFC 5280 4.2.1.13, the SPIFFE ID specification and the Nginx, Envoy and HAProxy documentation. Every example certificate is synthetic, made for this site, and uses only the reserved example.com and example.net domains.