ATS / TIC SSL Trust Error - URGENT!

All of a sudden, my app (in the app store!) cannot access its backend server

Getting SSL Errors - but Safari and Chrome saye all is OK.

This has totally crippled my app - What is going on ?


2018-03-11 11:53:43.599736-0400 etreemobile[10186:905673] https://appserver.etreemobile.com/lma/themes/classic.json

2018-03-11 11:53:43.599736-0400 etreemobile[10186:905673] ATS failed system trust

2018-03-11 11:53:43.600033-0400 etreemobile[10186:905673] System Trust failed for [1:0x60400016c840]

2018-03-11 11:53:43.600255-0400 etreemobile[10186:905673] TIC SSL Trust Error [1:0x60400016c840]: 3:0

2018-03-11 11:53:43.600651-0400 etreemobile[10186:905673] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)

Replies

I tried accessing your server from a device here in my office (running 11.2.6) and it worked just fine. Specifically, I created a small test project with the following code:

let url = URL(string: "https://appserver.etreemobile.com/lma/themes/classic.json")!
let request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalCacheData, timeoutInterval: 60.0)
URLSession.shared.dataTask(with: request) { (data, response, error) in
    if let error = error as NSError? {
        NSLog("task transport error %@ / %d", error.domain, error.code)
        return
    }
    let response = response as! HTTPURLResponse
    let data = data!
    NSLog("task finished with status %d, bytes %d", response.statusCode, data.count)
}.resume()

and I get the following output:

2018-03-14 10:58:54.731655+0000 xxsi[864:348397] task finished with status 200, bytes 17046

Please repeat my test and see what you get.

Share and Enjoy

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

let myEmail = "eskimo" + "1" + "@apple.com"