Daily iOS
Security

Pinning and key rotation

Your app pins the server's public key, and your security policy rotates the server certificate and key on a schedule. How does the client learn the new public key, so users on the old app version aren't all cut off right after a rotation?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Pin the SPKI (public key) hash instead of the leaf certificate, and put the current key together with backup keys you created in advance into the pin set, so an old app already knows the key when the server switches to a backup.

Share a question