Case 47BC03 · Cryptography · L3 Applied

Certificate Pinning Trade-offs

Practise as: InterviewLevel: L3 Applied

Interview questionThe mobile team wants to add certificate pinning to our app. Would you support that, and how would you do it safely?

  1. 01 Answer
  2. 02 Example
  3. 03 Trade-offs
What a strong answer covers

Try it out loud first. Then check yourself:

  1. Pinning trusts only specific keys, not any CA in the store; it blocks rogue CA certs and casual interception proxies.
  2. Pin SPKI hashes (often an intermediate or your own CA key) not leaf certs, and ship backup pins for planned rotation.
  3. Biggest risk is self-inflicted outage: a key change bricks old app versions; browsers dropped HPKP largely for this reason.
  4. It is not anti-tampering: on a rooted device Frida or objection hooks the check, so do not rely on it to hide your API.
  5. Alternatives: CT enforcement plus short-lived certs; if pinning, add a remote kill switch and monitor pin failures.

If the interviewer pushes back

  • Enterprise customers run TLS inspection and your pinned app now fails on their networks. How do you handle that?

More Cryptography cards

All Cryptography cards →

cardosec draws a security topic and gives you a clock: explain it out loud with no notes, then see what you covered and what you missed. Free during early access.

Reviewed 2026-10-09