|
|
|
|
|
by stanleydrew
3219 days ago
|
|
There is a debate about which public key to pin, and I'm not sure it's settled. It depends on your priorities and the relative probabilities you put on various failure modes. If you pin your public key, it's easy to switch CAs if the one you currently use goes under. This does happen.[1] But you are in trouble if you lose your key somehow. If you pin your CA's public key, it's easy to recover from losing your key but you can't switch CAs until your pin expires. You could use the required second HPKP pin to add a fallback CA though. I will note that this decision is not actually the hard part of deploying HPKP. [1] https://blog.mozilla.org/security/2016/10/24/distrusting-new... |
|
Or pin current CA + current pubkey? That way you can either change certificate within the current CA or use the current certificate to move to any new CA.