Search code examples
iosswiftx509certificatecertificate-pinning

Certificate Pinning in Concurrent requests Swift


I'm writing an app in swift 5 that needs to connect to my server. I have the full certificate chain. i have implemented certificate pinning and i have a success connection when i have one request but it fail when multiple requests at the same time why certificate pinning not work with multiple requests in the same time in swift?


Solution

  • i find the solution, so the issue is due to the allocation of the session, i have created a static variable session to void the allocation and it worked successfully