The three common roles
Root CA
Usually self-signed and accepted because it is enabled in a trust store or private policy.
Intermediate CA
Issued by a root or another intermediate and constrained to a defined scope.
Leaf certificate
Represents a server, user, device, workload, email address or signing identity.
Presented chain versus validated path
A server normally sends the leaf and necessary intermediates, not the root. A client can select a different path using cached intermediates or a cross-certificate. The chain displayed by a server and the path ultimately validated by the client may therefore differ.
Constraints matter
Basic Constraints, path-length constraints, Name Constraints, Key Usage, Extended Key Usage, policies and algorithm rules must be enforced along the path. Merely finding a cryptographically valid signature sequence is not enough.