Practical security for everyday technology.

X.509 name constraints limit the names a subordinate CA may certify

A laptop and network equipment on an IT work desk
AI-generated photographic illustration; not documentary photography.

A certificate authority can have a trusted signing chain without being authorised for every possible name. X.509 name constraints let a CA certificate limit the namespace accepted in certificates below it. This is useful when a subordinate CA should serve only a defined part of an organisation’s identity space.

Imagine a private certificate hierarchy for several divisions. Giving one division a subordinate CA need not mean giving it unrestricted authority over every division’s server names. Constraints express part of that boundary in the certificates themselves, where a validating client can evaluate it.

Read the extension, then follow the path

RFC 5280, section 4.2.1.10, defines permitted and excluded name subtrees. Constraints apply according to the name form involved, such as a DNS name or an IP address. The matching rules are specific; a familiar-looking suffix is not a reason to invent a string-matching shortcut.

The extension belongs in a CA certificate. During path validation, restrictions from the relevant certificates have to be considered alongside other checks. A mathematically valid signature does not override a name outside the permitted scope.

There is also a difference between restricting a DNS namespace and restricting an application’s behaviour. A constraint does not determine which pages a server may host, which users may sign in or whether its content is trustworthy.

A small review exercise

For an internal PKI review, draw the intended chain and write down the names the subordinate CA should be able to certify. Include an allowed name, a clearly excluded name and a boundary case. Then compare those expectations with the actual CA extension and the client software used by the organisation.

Keep this as a controlled validation exercise with test certificates. Record the client and library versions as well as the acceptance result. A result from one command-line tool is not evidence that every browser or device in the organisation handles the path identically.

If a certificate unexpectedly fails, inspect the chain and its constraints before replacing keys or changing trust stores. The failure may be the intended boundary doing its job. Understanding that boundary makes troubleshooting more precise and makes delegated certificate authority easier to reason about.