Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Jayden Spring
8,625 PointskCFStreamErrorDomainSSL Error
Hi.
I am trying to grab some JSON data from my server over HTTPS for which I have a signed certificate. However I am getting an error in the console:
NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9807)
This happens not only when trying to get some data from my server, but also from the likes of Google.
import UIKit
var str = "Hello, playground"
let url = NSURL(string: "https://ajax.googleapis.com/ajax/services/feed/find")
let req = NSURLRequest(URL: url!)
let data = NSData(contentsOfURL: url!)
If anyone could provide a solution to this rather (probably stupid) question it would be greatly appreciated!