There are many popular options to perform SSL pinning in iOS. These are- URLSession, AlamoFire, AFNetworking, TrustKit. We can implement Certificate pinning as well as public-key pinning using URLSession, AlamoFire, AFNetworking but if you are using TrustKit then you can only do public key pinning.