I am Using cordova@5.3.3 for building iphone application. Our server is https and we have installed the server ssl certificate in iphone device.
During login page application we are getting error ( captured from xcode logs while device plugged in): -
CFNetwork SSLHandshake failed (-9847 ) NSURLSession NSRLConnection HTTP Load failed. (kCFStreamErrorDomainSSL, -9847)
I checked with IOS Device: 8.3 and 9.2 and both of them having same issues. in AppDelegate.m file we have made below changes but still it is not working. (although its not recommended but i just want to make it work first)
+ (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host {
return YES;
}
i have updated app plist file by setting NSAllowsArbitraryLoads to true under NSAppTransportSecurity but still not working.
Our https server is TLS1.2 compliant.
I tried below settings also (step-3), but same issues.
NSURLSession/NSURLConnection HTTP load failed on iOS 9
How to debug/fix this problem. ?