CFNetwork SSLHandshake failed (-9801)

This is odd something wrong now trying to connect to my servers. They use SSL did something change there with NSURLSession?


NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9801)


I'm trying to run my IOS App under the simulator..

A few more details..


Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo=0x7ffe8a4b4040 {_kCFStreamErrorCodeKey=-9801, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?,

We are expierencing the same issue. I suppose we just wait.

Same here...

The workaround for now is to add this to your Info.plist:


<key>NSAppTransportSecurity</key>

<dict>

   <key>NSAllowsArbitraryLoads</key>

   <true/>

</dict>

There are more specific per-site keys that can be used.


Do the sites you are trying to connect to support TLS 1.2? If they do, report a bug.


(And report a bug anyway to get the documentation completed)

CFNetwork SSLHandshake failed (-9801)
 
 
Q