Certificate Chain
Cheat sheet · https://pcornel.dk/topic.php?topic=2871
Answer
A certificate chain links the server (leaf) certificate through intermediate CAs to a trusted root. Servers must send the leaf and intermediates; the client has the root.
Remember
Browsers may fetch missing intermediates; other clients do not. Configure the full chain file (leaf first, then intermediates). Don't include the root.
First checks
openssl x509 -in <cert> -noout -subject -issuer -dates -ext subjectAltName— certificate detailsopenssl s_client -connect <host>:443 -servername <name> </dev/null— live chain and verificationopenssl verify -CAfile <ca> -untrusted <chain> <cert>— chain validationtrust list | head / ls /etc/ssl/certs— system trust store
Verify in this order
server sends leaf + intermediates → client builds path to a trusted root → validated
Where it usually breaks
First mismatch in identity/group resolution → Unix mode/ACL/capability → mount/sandbox constraint → SELinux/AppArmor policy → credential/TLS trust → protected operation; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2871