:wave: Am I reading this right that I cannot pin t...
# ktor
n
👋 Am I reading this right that I cannot pin to just root certificate, I have to pin to the whole chain in ktor? https://github.com/ktorio/ktor/blob/main/ktor-client/ktor-client-ios/darwin/src/io/ktor/client/engine/ios/certificates/CertificatePinner.kt
y
No.
Copy code
* If multiple patterns match a hostname, any match is sufficient. For example, suppose pin A
 * applies to `*.publicobject.com` and pin B applies to `api.publicobject.com`. Handshakes for
 * `api.publicobject.com` are valid if either A's or B's certificate is in the chain.
but only in 1.5.2 onwards: https://github.com/ktorio/ktor/pull/2302
In < 1.5.2 the whole chain has to match
y
Ouch. That is terrible
I have concerns on framework code either having promoted opinions on how or whether to pin. I wish for a world where security team makes own educated decisions.