Hi I receive the following error:
Error Domain=NSURLErrorDomain Code=-1202 \"The certificate for this server is invalid. You might be connecting to a server that is pretending to be “server-prod.name-cloud.com” which could put your confidential information at risk.\" UserInfo={NSErrorFailingURLStringKey=https://server-prod.name-cloud.com /v3/project/session/926B9E6BE31B/, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, NSErrorFailingURLKey=https://server-prod.name-cloud.com /v3/project/session/926B9E6BE31B/, _kCFStreamErrorCodeKey=-9843, NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “server-prod.name-cloud.com” which could put your confidential information at risk.}
I read all the relevant docs, we apply all the requirements in "Common Failures" section.
More details:
- the errors received only from Germany(except 4 times in the past 2W that was from Italy)
- It is not reproducible in house
- Eventually after tons of retries the uploads go throw
- This was received booth in iOS 10.x.x & 9.x.x
- I use amazon servers with 2016-08 SSL Security Policies, so according to apple it should be OK
In the app I use:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
note - in production I always use HTTP’s, I leave the NSAllowsArbitraryLoads because some testers offshore can switch the rout to HTTP for debugging.
If you're on a work laptop with any kind of security measures, the SSL certs may be getting inspected / MITM'd by the endpoint protection.
Try opening any web page in mobile Safari. I get these same
NSURLErrorDomain Code=-1202
errors there as I do for https API requests from Xcode in iOS Simulator.Solution will be to turn off this security feature...
Or install a certificate: https://developer.apple.com/library/archive/qa/qa1948/_index.html
Similar issue is asked here: iOS Simulator not works on https, all https are evaluated as not trusted