Re:What You Need to Know about HTTP Public Key Pinning (HPKP)
by sjtgraham on Sunday February 07, 2016 @10:01AM
(#11053029)
If you pin to a root CA you're vulnerable to MITM if an intermediate CA that has the root in its chain of trust is compromised. Because that compromised CA would be able to sign a cert for an arbitrary domain while still satisfying your pinning directives.
By pinning to a public key you're saying "is this public key in this certificate's chain of trust?". Pinning to a root you have the most flexibility but the least amount of protection against MITM.
Re:What You Need to Know about HTTP Public Key Pinning (HPKP)
by AndyMcConachie on Sunday February 07, 2016 @10:24AM
(#11053119)
From RFC7469:
"user agents (UAs) will require that the host presents a certificate chain including at least one Subject Public Key Info structure whose fingerprint matches one of the pinned fingerprints for that host."
This makes it easier to deploy. If an org repeatedly gets their certs from a single CA they can just pin that CA. It does of course open you up to being compromised if anyone compromises that CA. But, like you said it's a big improvement over nothing.
Do I have that right?