Concept and mechanism
A certificate associates a public key with identities and restrictions, signed by an issuer. The private key remains separate and must stay protected; sharing the certificate does not require handing over that secret. Verification needs to build a path to an anchor the client already trusts under applicable policy.
Intermediate certificates help build this path but do not gain trust merely because the server sends them. PEM format, filename, and the presence of a signature do not themselves establish that the client should trust the issuer. Keep presented material and approved trust separate.
Guided application
In a fictional case, a browser works because it already has intermediate material while a fresh client fails with the same leaf. If the root is approved and the intermediate is missing, correct the presented chain and validate without relying on cache.
Do not turn the leaf into an improvised root to hide failure. After key rotation, compare the public components of the certificate and private key to confirm the pair without disclosing the secret. Also check purpose: a certificate limited to clientAuth does not automatically become suitable for serverAuth because chain and name are correct.
Identity, trust, validity, and permitted use are complementary dimensions.
An approved root and valid leaf are insufficient if the client cannot build the intermediate path.
Common pitfalls
Private key as shareable diagnostic material; received chain as trust; PEM as a key match; ignored purpose.
Related topics: Identity, name, and time · Negotiation, mTLS, and the application · Renewal and served certificates
Validate path, pair, and use without exposing the private key.
References
- X.509 certificates and path validation · RFC 5280 selected PKIX concepts
- OpenSSL public and private key operations · OpenSSL 3.5 documentation
- NGINX HTTPS chains and virtual hosts · Rolling project documentation inspected 2026-09-30
- curl certificate trust and identity checks · Rolling project documentation inspected 2026-09-30
- OpenSSL verification options and purpose · OpenSSL 3.5 documentation