kCFStreamErrorDomainSSL, -9802 when connecting to a server by IP address through HTTPS in iOS 9 kCFStreamErrorDomainSSL, -9802 when connecting to a server by IP address through HTTPS in iOS 9 ios ios

kCFStreamErrorDomainSSL, -9802 when connecting to a server by IP address through HTTPS in iOS 9


iOS9 requires the server to only support TLSv1.2 and support perfect forward security.

Also required is for the app to support IPV6 including not using hard-coded IP addresses. Suggested is to use NSURLSession. Otherwise exception additions must be made in the app plist.

See the WWDC-15 session "Security and your Apps".

Also see Steven Peterson's Blog for details.


You can add this in your "Info.plist" file, it will allow non secured connections:

<key>NSAppTransportSecurity</key><dict>    <key>NSAllowsArbitraryLoads</key>    <true/></dict>


I found another stack overflow answer with a checklist of the exact new requirements on the server to full fill the iOS 9 default App Transport Security requirements:iOS 9 Security Server requirements Checklist

Hope that helps.