Search code examples
iosssl-certificatesocketrocket

Is pinning a custom CA certificate enough to verify last certificate in the chain?


I am trying to use a custom CA on SocketRocket. Is pinning the root certificate enough to verify MySuperServer in the construct below?

-MyCustomCA
 -IntermadiateA
  -IntermadiateA1
   -MySuperServer

Or do I have to pin IntermadiateA1 certificate?


Solution

  • Pinning of the root certificate worked for me.