Join our Newsletter — 33% off our NHI Course
Home› Guides› X.509 Certificate Extensions Reference: What Each Extension Means…
Guide Non-Human Identity (NHI)

X.509 Certificate Extensions Reference: What Each Extension Means and How to Set It

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 14 min read
On this page

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.

ExtensionOIDRFC 5280 criticality rulePurpose
Authority Key Identifier2.5.29.35MUST be non-criticalIdentifies the issuer's key, used to build the chain
Subject Key Identifier2.5.29.14MUST be non-criticalIdentifies this certificate's key
Key Usage2.5.29.15SHOULD be criticalCryptographic operations the key may perform
Certificate Policies2.5.29.32Either; if critical, must be understoodPolicy OIDs the certificate was issued under
Policy Mappings2.5.29.33SHOULD be criticalMaps policies between CA domains
Subject Alternative Name2.5.29.17MUST be critical if subject is empty, otherwise SHOULD be non-criticalDNS names, IP addresses, email, URIs the certificate covers
Issuer Alternative Name2.5.29.18SHOULD be non-criticalAlternative names for the issuer
Basic Constraints2.5.29.19MUST be critical in CA certificates that validate certificate signaturesWhether the subject is a CA, and path length
Name Constraints2.5.29.30MUST be critical (CA certificates only)Name spaces a CA may issue for
Policy Constraints2.5.29.36MUST be criticalRequires explicit policy or inhibits mapping
Extended Key Usage2.5.29.37Either, at the issuer's optionApplication purposes such as serverAuth
CRL Distribution Points2.5.29.31SHOULD be non-criticalWhere to fetch the CRL
Inhibit anyPolicy2.5.29.54MUST be criticalStops anyPolicy matching further down the path
Freshest CRL2.5.29.46MUST be non-criticalDelta CRL location
Authority Information Access1.3.6.1.5.5.7.1.1MUST be non-criticalOCSP 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 bitNameTypical use
0digitalSignatureTLS handshake signatures, client authentication, signing data
1nonRepudiation (contentCommitment)Document signing where commitment matters
2keyEnciphermentRSA key transport (legacy TLS RSA key exchange, S/MIME)
3dataEnciphermentEncrypting data directly with the public key; rare
4keyAgreementDiffie-Hellman style key agreement with static keys
5keyCertSignSigning certificates; requires cA TRUE in Basic Constraints
6cRLSignSigning CRLs
7encipherOnlyOnly with keyAgreement
8decipherOnlyOnly with keyAgreement
EKU purposeOIDUsed forUsual KU pairing
id-kp-serverAuth1.3.6.1.5.5.7.3.1TLS server certificatesdigitalSignature (plus keyEncipherment for RSA where legacy key exchange is needed)
id-kp-clientAuth1.3.6.1.5.5.7.3.2TLS client certificates, mTLS workloads, devices, usersdigitalSignature
id-kp-codeSigning1.3.6.1.5.5.7.3.3Signing executable codedigitalSignature
id-kp-emailProtection1.3.6.1.5.5.7.3.4S/MIMEdigitalSignature, keyEncipherment
id-kp-timeStamping1.3.6.1.5.5.7.3.8Time-stamping authoritiesdigitalSignature
id-kp-OCSPSigning1.3.6.1.5.5.7.3.9Delegated OCSP respondersdigitalSignature
anyExtendedKeyUsage2.5.29.37.0Any purpose; RFC 5280 says do not mark EKU critical when presentAvoid 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.com matches api.example.com but not a.b.example.com or example.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.

CertificatecApathLenConstraintKU
Root CA (two-tier hierarchy)TRUECommonly omitted or set to 1keyCertSign, cRLSign
Issuing CATRUE0keyCertSign, cRLSign
Public TLS subscriberFALSE (BR 7.1.2.7.8)Must not be presentdigitalSignature (RSA may add keyEncipherment)
Private workload or deviceFALSEAbsentdigitalSignature

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.com matches that name and any name formed by adding labels on the left, such as host.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.

ExtensionPresenceCritical
authorityKeyIdentifierMUSTNo
certificatePoliciesMUSTNo
extKeyUsageMUSTNo
subjectAltNameMUSTOnly if subject is empty
keyUsageSHOULDYes
basicConstraintsMAY (cA FALSE)Yes
authorityInformationAccessSHOULDNo
crlDistributionPointsConditionalNo
subjectKeyIdentifierNOT RECOMMENDEDNo
nameConstraintsMUST NOTNot 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

  1. 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.
  2. Define profiles: one written profile per certificate type (server, client, device, issuing CA) with exact extension values and critical flags.
  3. Test: issue test certificates from a non-production CA and validate them against every client stack (browsers, Java, Go, OpenSSL, Windows, embedded devices).
  4. Pilot: switch one service group to the new profile at its next renewal and watch handshake error rates.
  5. Roll out at renewal: let the new profile replace old certificates through normal automated renewal rather than a mass reissue.
  6. Roll back: keep the previous profile available on the CA so a failing service can be reissued on it quickly, with a tracked exception.
MetricTarget
End-entity certificates with CA:TRUE0
Issuing CAs without pathLenConstraint0
Certificates with no SAN or hostname only in CN0
Private certificates with anyExtendedKeyUsage or no EKU0, or a named exception
Public certificates used as mTLS client credentialsFalling to 0
Subordinate CAs for bounded name spaces without Name Constraints0

Framework mapping

FrameworkReferenceRelevance
NIST SP 800-53 Rev 5SC-17 Public Key Infrastructure CertificatesIssue certificates under an approved certificate policy
NIST SP 800-53 Rev 5SC-12 Cryptographic Key Establishment and ManagementKey purposes and management
NIST SP 800-53 Rev 5IA-5 Authenticator ManagementCertificates as authenticators for clients and workloads
NIST CSF 2.0PR.PS-01Certificate 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

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

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.