Encryption and certificates
Certificate chain
A server's certificate, signed by an issuing CA, whose certificate a root signed: the path a client follows to someone it trusts.
A certificate chain is the path from a server's certificate to a root the client trusts: an intermediate (issuing)
CA signed the server's certificate, and a root signed the intermediate's. The server sends its certificate and every
intermediate, never the root, which must be in the client's [[trust-store]]. Leave out the intermediate and curl fails
with unable to get local issuer certificate. openssl s_client -showcerts shows what a server sends.
Read next
- TLS and certificates Encryption plus proof of identity: the server shows a certificate for the name, signed by a trusted authority.
- Trust store The list of root certificates a device trusts; every certificate it accepts chains to one of them.
- Self-signed certificate A certificate whose issuer is its own subject: nobody vouches for it but itself.
- Certificate signing request What a server sends a CA to get a certificate: its public key and names, signed with its private key.
- Mutual TLS TLS in which the server also asks for the client's certificate and checks it, so both ends prove who they are.
- Hashing, salting and key exchange The building blocks under TLS and passwords: one-way hashes, salts, key pairs and agreeing a key in public.
- DNSSEC chain of trust The run of signed links from the root's key, which a resolver trusts, down to the answer it checks.
- HTTPS interception Reading an HTTPS session from a box in the path by forging the server's certificate — which works only once the victim trusts the box's CA, and which certificate pinning defeats even then.
- weak TLS configuration A server with a valid certificate that still accepts obsolete protocol versions (TLS 1.0/1.1) or weak cipher suites — a configuration flaw the padlock never shows, found by enumerating what the server offers and fixed by policy, not a new certificate.