0

I have a problem with SSL Pinning on iOS. I was using the following plugin:

https://github.com/silkimen/cordova-plugin-advanced-http

and

https://ionicframework.com/docs/native/http

This method is working fine for Android. However, with iOS, I am receiving the following error on Xcode:

Connection 1: default TLS Trust evaluation failed(-9813)
Connection 1: TLS Trust encountered error 3:-9813
Connection 1: encountered error(3:-9813)

I am not sure how to fix this problem. I've googled everywhere, and most of the solution is for Android, and not iOS specifically.

Any help is very much appreciated. Thank you.

3
  • Do you find any solution? I have the same problem too. Commented Nov 30, 2021 at 5:29
  • @ChrisJoo took me 2 months, but I found the problem is with the certificate. You can read how I solved it here, wrote this as a reminder to myself too-> javascript.plainenglish.io/… Commented Dec 2, 2021 at 1:54
  • Thank you... I found a solution luckily... The problem came from my wrong certificate file serving from cert.pem not fullchain.pem file... Also I changed app.componet.ts code ( i.e., iOS: this.httpSSL.setServerTrustMode('default'); , Android: this.httpSSL.setServerTrustMode('pinned'); Commented Dec 2, 2021 at 2:15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.