Most certificate validation failures and many PKI weaknesses come down to a handful of X.509 v3 extensions set wrongly. Key Usage, Extended Key Usage, Subject Alternative Name, Basic Constraints and Name Constraints decide whether a certificate may sign other certificates, which hostnames it covers and what it may be used for. This reference lists each extension with its OID, the criticality rule from RFC 5280 and what the values mean, then covers the CA/Browser Forum rules for public TLS certificates and the misconfigurations that break or weaken validation. It is for PKI engineers, developers and platform teams who issue or debug certificates for servers, services and workloads. For hierarchy design, see the Enterprise PKI Design and CA Hierarchy Guide. Root programme rules were checked on 26 November 2026.
Key takeaways
- Criticality decides failure mode: under RFC 5280 a relying party must reject a certificate with a critical extension it does not recognise, so mark critical only what the standard says should be critical.
- Key Usage and EKU are both enforced: when both are present a certificate may be used only for a purpose consistent with both; serverAuth and clientAuth live in EKU, not Key Usage.
- Hostnames come from the SAN only: RFC 9525 states the Common Name must not be used to identify a service, so a certificate without the right dNSName or iPAddress SAN entry will fail.
- CA:TRUE is the most dangerous bit in PKI: it turns a certificate into a CA; end-entity certificates must carry CA:FALSE, and CAs should carry a pathLenConstraint that matches the design.
- Name Constraints scope a private CA: a critical nameConstraints extension limits which DNS names and IP ranges a subordinate CA can issue for, which is the main control for partner and team-specific CAs.
How extensions work and criticality
An X.509 v3 certificate carries a list of extensions. Each has an object identifier (OID), a critical flag and a value. RFC 5280 section 4.2 sets two rules that matter in every deployment: a certificate must not include more than one instance of a given extension, and a certificate-using system must reject a certificate containing a critical extension it does not recognise or cannot process. A non-critical extension that a system does not understand may be ignored.
That makes the critical flag a compatibility decision as much as a security one. Mark a constraint critical and older software rejects the certificate rather than silently ignoring the rule; mark an informational extension critical and you cause outages for no benefit.
| Extension | OID | RFC 5280 criticality rule | Purpose |
|---|---|---|---|
| Authority Key Identifier | 2.5.29.35 | MUST be non-critical | Identifies the issuer's key, used to build the chain |
| Subject Key Identifier | 2.5.29.14 | MUST be non-critical | Identifies this certificate's key |
| Key Usage | 2.5.29.15 | SHOULD be critical | Cryptographic operations the key may perform |
| Certificate Policies | 2.5.29.32 | Either; if critical, must be understood | Policy OIDs the certificate was issued under |
| Policy Mappings | 2.5.29.33 | SHOULD be critical | Maps policies between CA domains |
| Subject Alternative Name | 2.5.29.17 | MUST be critical if subject is empty, otherwise SHOULD be non-critical | DNS names, IP addresses, email, URIs the certificate covers |
| Issuer Alternative Name | 2.5.29.18 | SHOULD be non-critical | Alternative names for the issuer |
| Basic Constraints | 2.5.29.19 | MUST be critical in CA certificates that validate certificate signatures | Whether the subject is a CA, and path length |
| Name Constraints | 2.5.29.30 | MUST be critical (CA certificates only) | Name spaces a CA may issue for |
| Policy Constraints | 2.5.29.36 | MUST be critical | Requires explicit policy or inhibits mapping |
| Extended Key Usage | 2.5.29.37 | Either, at the issuer's option | Application purposes such as serverAuth |
| CRL Distribution Points | 2.5.29.31 | SHOULD be non-critical | Where to fetch the CRL |
| Inhibit anyPolicy | 2.5.29.54 | MUST be critical | Stops anyPolicy matching further down the path |
| Freshest CRL | 2.5.29.46 | MUST be non-critical | Delta CRL location |
| Authority Information Access | 1.3.6.1.5.5.7.1.1 | MUST be non-critical | OCSP responder (id-ad-ocsp) and issuer certificate URL (id-ad-caIssuers) |
To inspect these on a live certificate, decode it with your usual tooling and compare against this table. File formats and conversions are covered in Certificate and Key File Formats.
Key Usage and Extended Key Usage
Key Usage (KU) is a bit string describing low-level cryptographic operations. Extended Key Usage (EKU) lists application purposes as OIDs. RFC 5280 section 4.2.1.12 says that when both are present they are processed independently and the certificate may be used only for a purpose consistent with both; if no such purpose exists, it must not be used at all.
| KU bit | Name | Typical use |
|---|---|---|
| 0 | digitalSignature | TLS handshake signatures, client authentication, signing data |
| 1 | nonRepudiation (contentCommitment) | Document signing where commitment matters |
| 2 | keyEncipherment | RSA key transport (legacy TLS RSA key exchange, S/MIME) |
| 3 | dataEncipherment | Encrypting data directly with the public key; rare |
| 4 | keyAgreement | Diffie-Hellman style key agreement with static keys |
| 5 | keyCertSign | Signing certificates; requires cA TRUE in Basic Constraints |
| 6 | cRLSign | Signing CRLs |
| 7 | encipherOnly | Only with keyAgreement |
| 8 | decipherOnly | Only with keyAgreement |
| EKU purpose | OID | Used for | Usual KU pairing |
|---|---|---|---|
| id-kp-serverAuth | 1.3.6.1.5.5.7.3.1 | TLS server certificates | digitalSignature (plus keyEncipherment for RSA where legacy key exchange is needed) |
| id-kp-clientAuth | 1.3.6.1.5.5.7.3.2 | TLS client certificates, mTLS workloads, devices, users | digitalSignature |
| id-kp-codeSigning | 1.3.6.1.5.5.7.3.3 | Signing executable code | digitalSignature |
| id-kp-emailProtection | 1.3.6.1.5.5.7.3.4 | S/MIME | digitalSignature, keyEncipherment |
| id-kp-timeStamping | 1.3.6.1.5.5.7.3.8 | Time-stamping authorities | digitalSignature |
| id-kp-OCSPSigning | 1.3.6.1.5.5.7.3.9 | Delegated OCSP responders | digitalSignature |
| anyExtendedKeyUsage | 2.5.29.37.0 | Any purpose; RFC 5280 says do not mark EKU critical when present | Avoid on end-entity certificates |
Public TLS certificates: the CA/Browser Forum Baseline Requirements (Version 2.3.1, section 7.1.2.7.10) require id-kp-serverAuth, allow id-kp-clientAuth, and forbid codeSigning, emailProtection, timeStamping, OCSPSigning and anyExtendedKeyUsage. Root programme policy goes further: Chrome Root Program Policy Version 1.8 (5 February 2026, section 1.3.2) states the Chrome Root Store is relied on solely for TLS server authentication and requires subscriber certificates issued on or after 15 March 2027 to assert only id-kp-serverAuth. Public CAs may drop clientAuth earlier, so a public certificate used as an mTLS client credential can lose that purpose at its next renewal. Dates and migration are in the Chrome clientAuth EKU Removal guide. Client authentication belongs on a private CA.
Decision guidance: issue separate certificates for server and client roles where you control both, so a stolen server key cannot also authenticate as a client. Combine serverAuth and clientAuth in one private certificate only where the workload genuinely needs both, such as service mesh sidecars, and document why. See the mTLS Guide.
Subject Alternative Name
The SAN extension carries the identities the certificate vouches for: dNSName, iPAddress, rfc822Name (email), uniformResourceIdentifier and others. For TLS, RFC 9525 (Proposed Standard, November 2023, obsoleting RFC 6125) states the Common Name must not be used to identify a service because it is not strongly typed, and that the server identity can only be expressed in subjectAltName. Clients that follow it ignore the CN entirely.
- Wildcards: RFC 9525 allows only one wildcard, as the complete left-most label, matching exactly one label.
*.example.commatchesapi.example.combut nota.b.example.comorexample.com. - IP addresses: an IP reference identity must match an iPAddress SAN entry exactly, octet for octet. An IP address written as a dNSName does not match.
- Public TLS rules: BR section 7.1.2.7.12 requires at least one dNSName or iPAddress, permits no other name types, forbids Internal Names and reserved IP addresses, and requires the SAN to be critical only when the subject is empty, otherwise non-critical.
- Workload identity: SPIFFE and similar schemes put a URI SAN in private certificates; validators must be configured to check that URI rather than a hostname. See Certificate vs Federated vs Secret Based Machine Identity.
Basic Constraints and path length
Basic Constraints holds two fields: cA (boolean) and pathLenConstraint. RFC 5280 section 4.2.1.9 requires the extension, marked critical, in CA certificates that validate certificate signatures. If cA is not asserted, the key must not verify certificate signatures and keyCertSign must not be set.
pathLenConstraint is meaningful only when cA is TRUE and keyCertSign is set. It gives the maximum number of non-self-issued intermediate CA certificates that may follow in a valid path; zero means the CA may issue only end-entity certificates. In OpenSSL configuration this appears as basicConstraints = critical, CA:TRUE, pathlen:0.
| Certificate | cA | pathLenConstraint | KU |
|---|---|---|---|
| Root CA (two-tier hierarchy) | TRUE | Commonly omitted or set to 1 | keyCertSign, cRLSign |
| Issuing CA | TRUE | 0 | keyCertSign, cRLSign |
| Public TLS subscriber | FALSE (BR 7.1.2.7.8) | Must not be present | digitalSignature (RSA may add keyEncipherment) |
| Private workload or device | FALSE | Absent | digitalSignature |
Risk: an end-entity certificate with CA:TRUE, or an issuing CA without a path length limit, lets whoever holds that key mint further certificates that chain to your root. In private PKI the most common cause is a template or a copied OpenSSL config section reused for the wrong profile. For template review in Microsoft environments, see How to audit AD CS certificate templates.
Name Constraints
Name Constraints (RFC 5280 section 4.2.1.10) appears only in CA certificates and must be marked critical. It holds permittedSubtrees and excludedSubtrees; excluded takes precedence. Constraints apply only to name forms present in the certificate being checked, and applications must process directoryName constraints and should process rfc822Name, URI, dNSName and iPAddress constraints.
- dNSName: a constraint of
example.commatches that name and any name formed by adding labels on the left, such ashost.example.com. - iPAddress: written as address plus mask (8 octets for IPv4, 32 for IPv6); OpenSSL syntax is
permitted;IP:10.0.0.0/255.0.0.0. - Scoped private CAs: give a partner, business unit or test environment a subordinate CA constrained to its own domains and ranges, so a compromise of that CA cannot issue for your other names.
- Technically constrained public sub-CAs: BR section 7.1.2.5.2 requires permittedSubtrees with at least one dNSName, iPAddress and directoryName entry, and excludes a whole namespace with a zero-length dNSName or all-zero iPAddress. It says the extension SHOULD be critical but MAY be non-critical for legacy compatibility.
Decision guidance: use Name Constraints whenever a CA serves a bounded set of names. Test every client platform before rollout: a client that does not process a constraint type you rely on will either reject the chain (if critical) or ignore it. Mark it critical for private CAs, as RFC 5280 requires. For broader private CA design, see the Private CA Design and Operations Guide.
Other extensions to know
- Authority Information Access: carries the OCSP URL (id-ad-ocsp, 1.3.6.1.5.5.7.48.1) and the issuer certificate URL (id-ad-caIssuers, 1.3.6.1.5.5.7.48.2), which some clients use to fetch missing intermediates. Missing or unreachable caIssuers URLs are a frequent cause of "unknown authority" errors; see the x509 Certificate Signed by Unknown Authority Troubleshooting Guide.
- CRL Distribution Points: where relying parties fetch the CRL. See the Certificate Revocation Guide.
- Certificate Policies: policy OIDs, including CA/Browser Forum validation-level OIDs on public certificates, required in public TLS subscriber certificates by BR 7.1.2.7.6.
- Policy Constraints and Inhibit anyPolicy: used in cross-certified or bridge environments to force explicit policy; both must be critical.
- Signed Certificate Timestamps: embedded Certificate Transparency proofs on public TLS certificates. See the Certificate Transparency Guide.
Public TLS profile at a glance
The Baseline Requirements Version 2.3.1 (4 October 2026), section 7.1.2.7.6, sets this subscriber certificate profile. Public CAs enforce it at issuance, so you mainly need it to understand why a request was rejected or why a certificate behaves differently from a private one. The wider rules are in the CA/Browser Forum Baseline Requirements Guide.
| Extension | Presence | Critical |
|---|---|---|
| authorityKeyIdentifier | MUST | No |
| certificatePolicies | MUST | No |
| extKeyUsage | MUST | No |
| subjectAltName | MUST | Only if subject is empty |
| keyUsage | SHOULD | Yes |
| basicConstraints | MAY (cA FALSE) | Yes |
| authorityInformationAccess | SHOULD | No |
| crlDistributionPoints | Conditional | No |
| subjectKeyIdentifier | NOT RECOMMENDED | No |
| nameConstraints | MUST NOT | Not applicable |
For key usage, the BRs say RSA subscriber keys SHOULD have digitalSignature and MAY have keyEncipherment, while ECC keys MUST have digitalSignature and no other bit except keyAgreement, which is NOT RECOMMENDED.
Common misconfigurations
- Hostname only in the CN: modern clients ignore the CN and the connection fails; always put every name in the SAN.
- Critical flag on the wrong extension: a critical EKU containing anyExtendedKeyUsage, or a critical custom extension, causes rejections on clients that do not understand it.
- KU and EKU that contradict: keyEncipherment only on an ECDSA certificate, or clientAuth EKU without digitalSignature, produces a certificate that is valid for nothing.
- CA:TRUE on leaf certificates or no pathlen on issuing CAs: anyone holding the key can issue trusted certificates.
- No EKU or Any Purpose on private templates: the certificate can be presented for client authentication or code signing where it was never intended; review templates against their real use.
- Relying on a public certificate for mTLS client authentication: clientAuth is being removed from public TLS hierarchies, and renewals will break.
- Unconstrained partner or test sub-CAs: a subordinate CA without Name Constraints can issue for any name your clients trust.
How to roll out a profile change
- Inventory: decode every certificate in your inventory and record KU, EKU, SAN types, Basic Constraints and Name Constraints. See How to build a TLS certificate inventory.
- Define profiles: one written profile per certificate type (server, client, device, issuing CA) with exact extension values and critical flags.
- Test: issue test certificates from a non-production CA and validate them against every client stack (browsers, Java, Go, OpenSSL, Windows, embedded devices).
- Pilot: switch one service group to the new profile at its next renewal and watch handshake error rates.
- Roll out at renewal: let the new profile replace old certificates through normal automated renewal rather than a mass reissue.
- Roll back: keep the previous profile available on the CA so a failing service can be reissued on it quickly, with a tracked exception.
| Metric | Target |
|---|---|
| End-entity certificates with CA:TRUE | 0 |
| Issuing CAs without pathLenConstraint | 0 |
| Certificates with no SAN or hostname only in CN | 0 |
| Private certificates with anyExtendedKeyUsage or no EKU | 0, or a named exception |
| Public certificates used as mTLS client credentials | Falling to 0 |
| Subordinate CAs for bounded name spaces without Name Constraints | 0 |
Framework mapping
| Framework | Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | SC-17 Public Key Infrastructure Certificates | Issue certificates under an approved certificate policy |
| NIST SP 800-53 Rev 5 | SC-12 Cryptographic Key Establishment and Management | Key purposes and management |
| NIST SP 800-53 Rev 5 | IA-5 Authenticator Management | Certificates as authenticators for clients and workloads |
| NIST CSF 2.0 | PR.PS-01 | Certificate profiles as configuration baselines |
Practitioner checklist
- Write one profile per certificate type with exact KU, EKU, SAN and Basic Constraints values and critical flags.
- Put every hostname and IP address in the SAN; never rely on the CN.
- Set CA:FALSE on every end-entity certificate and pathlen:0 on every issuing CA.
- Mark Basic Constraints and Name Constraints critical on private CA certificates.
- Constrain partner, team and test subordinate CAs to their own DNS names and IP ranges.
- Remove anyExtendedKeyUsage and empty EKU from private templates.
- Move mTLS client authentication to private CA certificates before public renewals drop clientAuth.
- Scan your inventory monthly for the metrics above.
Standards and references
- IETF: RFC 5280 Internet X.509 Public Key Infrastructure Certificate and CRL Profile
- IETF: RFC 9525 Service Identity in TLS
- CA/Browser Forum: Baseline Requirements for the Issuance and Management of Publicly-Trusted TLS Server Certificates
- OpenSSL: x509v3_config, X.509 V3 certificate extension configuration format
- NIST: SP 800-53 Rev. 5, Security and Privacy Controls for Information Systems and Organizations
- Google: Chrome Root Program Policy
Related NHI Mgmt Group resources: Enterprise PKI Design and CA Hierarchy Guide · Chrome clientAuth EKU Removal · CA/Browser Forum Baseline Requirements Guide · x509 Certificate Signed by Unknown Authority Troubleshooting Guide