Interview Prep/Networking/HTTP, TLS & Certificates

What is certificate pinning and why is it risky?

AdvancedConceptHTTP, TLS & Certificates
Answer

The client hard-codes an expected certificate or public key hash so even a trusted CA cannot impersonate the server. It protects against rogue CAs but breaks when you rotate certs or switch CA unless you pin a backup key.

Browsers removed HPKP; mobile apps still use it with fallback pins. In server-to-server code prefer private CA trust over per-cert pinning.

All Networking questions Roadmap: Networking for DevOps

More on HTTP, TLS & Certificates