AP® Computer Science Principles · Big Idea 5 · Topic 5.6
Certificate Authorities and the Chain of Trust
A certificate authority is a trusted organization that verifies a website owns the public key it claims to, so your browser can trust that key without meeting the site's owner. That trust spreads through a chain, and it breaks completely if any link in the chain is compromised.
When your browser connects to your bank's site, it needs the bank's real public key, not one planted by an attacker. It can't just trust the key because the site says so. Instead it checks a digital certificate: a file signed by a certificate authority (CA), stating 'this public key belongs to this bank.' Your browser already has a built-in list of root CAs it trusts completely. If the certificate traces back to one of those roots, the browser accepts the key and encrypts the connection with it.
That tracing-back is the chain of trust. A root CA rarely signs certificates for websites directly. Instead it vouches for intermediate CAs, and those intermediates vouch for individual sites. Each certificate is signed by the authority one level up, so following the signatures upward eventually lands on a root your browser already trusts. This layering means a root's trust fans out to huge numbers of sites: if a root vouches for 50 intermediates and each of those vouches for 200 sites, 10,000 sites ultimately depend on that one root staying honest. That's also the danger. If a root CA is compromised, every certificate beneath it, through every intermediate, becomes suspect, because the signatures all point back to a root that can no longer be trusted.
This is why the padlock icon in your address bar only ever confirms an encrypted connection. It proves the data between you and the server is scrambled during transit, matching the key from a valid certificate. It says nothing about who runs that server. A scammer can obtain a legitimate certificate for a fake site and show the same padlock, because the CA only verifies key ownership, not business honesty.
Key terms
- Certificate authority (CA)
- An organization trusted to verify that a specific public key really belongs to a specific website or owner.
- Digital certificate
- A signed file stating which public key belongs to which website, issued and vouched for by a CA.
- Chain of trust
- The sequence of signatures linking a website's certificate up through intermediate authorities to a trusted root CA.
- Root CA
- A top-level certificate authority that browsers trust by default and that vouches for intermediate authorities.
- Padlock icon
- A browser symbol showing the current connection is encrypted, not a guarantee that the site's operator is trustworthy.
Watch it explained
Check yourself
End of topic.