Swift 2 - kCFStreamErrorDomainSSL, -9813 using ssl

I am trying to access the data from my server using. I have tried to edit the info.plist in all possible way but I cannot have a response from the link "https://plus.livectlab.com/users_videos.json".


If I use Http and

NSAllowsArbitraryLoads
I can get a response. My certificate is using SHA-2 and the error I get is:


2015-10-29 11:53:52.732 Test[1690:47109] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)

FAILURE


When I do the ssl check on DIGICert everything seems correctly installed.


If I use NSAllowsArbitraryLoads and HTTPS link I get the error


2015-10-29 12:00:23.891 Test[1729:50445] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)


Any Idea why I cannot get any responce using HTTPS link of my UBUNTU server?

I could retrieve the content JSON data from the url you described above using HTTPS.


I have tried to edit the info.plist in all possible

In general, if your server is all fine about HTTPS settings, you have no need to modify Info.plist .

I could retrieve the content JSON data from the url you described above using HTTPS.

Likewise. AFAICT your server is set up so that you don’t need any ATS exceptions.

Do you have anything weird configured on your device? Or on your local network? Perhaps a proxy? Have you tried it on a newly installed device? Or a network that’s different from your usual network (WWAN perhaps, or your home network if you’re testing at work)?

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Swift 2 - kCFStreamErrorDomainSSL, -9813 using ssl
 
 
Q