OS X Server & NSAppTransportSecurity HTTP load failed

I'm using OS X Server 4.1.3 and an iPhone 6 with iOS9 Beta-4.


When I try to connect to the OS X Server ("skw.local") with

let urlPath: String = "https://skw.local/" 
let url: NSURL = NSURL(string: urlPath)!
let request: NSMutableURLRequest = NSMutableURLRequest(URL: url)
let sessionConfig = NSURLSessionConfiguration.defaultSessionConfiguration()
let sesh = NSURLSession(configuration: sessionConfig)
let task = sesh.dataTaskWithRequest(request) {(data, response, error) -> Void in
     if error == nil {
          print("Response: \(response)")
     }
     else {
          print(error, appendNewline: true)
     }
}
task.resume()

I get the following error:


NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
You might be connecting to a server that is pretending to be “skw.local” which could put your confidential information at risk."


I have tried bypassing the NSAppTransportSecurity requirements by adding the following to my Info.plist:


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


but I get the same errors.


Anyone else having similar trouble?

OS X Server & NSAppTransportSecurity HTTP load failed
 
 
Q