SSL Trust Error on iOS device and stops sending rest calls once this error occurs


#1

Hi All,

Im facing a strange issue in my mobile application.
Its built using ionic 3 and angular.
All the rest calls via HttpClient over https work successfully but all of a sudden get the following error in Xcode

TIC SSL Trust Error [25:0x1c0176d40]: 3:0
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9807)
Task <06705018-EF17-418D-A116-4901CD538D11>.<0> HTTP load failed (error code: -1202 [3:-9807])
NSURLConnection finished with error - code -1202
Received XPC error Connection interrupted for message type 3 kCFNetworkAgentXPCMessageTypePACQuery

In the console, Error message is “The certificate for this server is invalid. You might be connecting to a server that is pretending to be “” which could put your confidential information at risk.”
Certificate is valid and i’m able to view the certificate on accessing the site via the browser with expiry date as a future date.

Any further rest calls after this error does not get processed and does not reach the server.
Any pointers with regard to this would be of great help.

Regards,
Neethi


#2

Any solutions on this problem? I am facing the same.