Skip to content
Commitwise
Menu

Certificate pinning

Also called: Public key pinning, SSL pinning

Trusting only specific server keys for a domain, instead of any certificate a trusted authority has issued.

Definition

The app stores hashes of the server's public keys and rejects connections whose certificate chain doesn't contain one, which defeats mis-issued certificates and user-installed root certificates. It needs at least one backup key and a rotation plan, because a key change the app doesn't know about makes every request fail until users update.

In practice

A banking app pins the current API key and an undeployed backup in NSPinnedDomains.

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.