Error Domain=NSURLErrorDomain Code=-1202

Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “abc.xyz.com” which could put your confidential information at risk." UserInfo={NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “abc.xyz.com” which could put your confidential information at risk., NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, NSUnderlyingError=0x14dc1150 {Error Domain=kCFErrorDomainCFNetwork Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “abc.xyz.com” which could put your confidential information at risk." UserInfo={NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “abc.xyz.com” which could put your confidential information at risk., _kCFNetworkCFStreamSSLErrorOriginalValue=-9813, _kCFStreamPropertySSLClientCertificateState=0, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorCodeKey=-9813, kCFStreamPropertySSLPeerTrust=<SecTrustRef: 0x14da0600>, _kCFStreamErrorDomainKey=3, kCFStreamPropertySSLPeerCertificates=<CFArray 0x14e28ef0 [0x39ba6840]>{type = immutable, count = 1, values = ( 0 : <cert(0x14e292a0) s: *.xyz.com i: Go Daddy Secure Certificate Authority - G2> )}, NSErrorFailingURLStringKey=https://abc.xyz.com:3000/api/v1/getStores, NSErrorFailingURLKey=https://abc.xyz.com:3000/api/v1/getStores}}, _kCFStreamErrorCodeKey=-9813, NSErrorFailingURLStringKey=https://abc.xyz.com:3000/api/v1/getStores, NSErrorPeerCertificateChainKey=<CFArray 0x14e28ef0 [0x39ba6840]>{type = immutable, count = 1, values = ( 0 : <cert(0x14e292a0) s: *.xyz.com i: Go Daddy Secure Certificate Authority - G2> )}, NSErrorClientCertificateStateKey=0, NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x14da0600>, NSErrorFailingURLKey=https://abc.xyz.com:3000/api/v1/getStores} ,


I have inserted false domain name because of security purpose.

I have already purchased SSL certificate from Godaddy and its a valid certificate. I am totally confused why its showing invalid certificate when I am trying to build app on ios9.3.2 then its giving error. I have already tried with arbitary loads also then also giving error KCF -9813 code.

Error Domain=NSURLErrorDomain Code=-1202
 
 
Q