Pick the fix
Which pinning approach is safest to run in production?
Hint 1 of 1
What happens when the certificate is renewed?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Pin SPKI hashes of your keys plus a backup key, declared in NSPinnedDomains, with a rotation plan
Correct. Renewals don't break it, and there is a path for key changes.
Why not the others?
- B Bundle the leaf certificate file and compare it byte for byte. It breaks on every renewal.
- C Accept any certificate in the authentication challenge. That disables TLS validation completely.
- D Skip pinning but turn off ATS. That lowers security.