ios - Meaning of values received from "SecTrustCopyPublicKey" call -
when making https request google.com, did following: import foundation class learnnsurlsession: nsobject, nsurlsessiondelegate, nsurlsessiontaskdelegate { override init() { super.init() let mysession = nsurlsession(configuration: nsurlsessionconfiguration.ephemeralsessionconfiguration(), delegate: self, delegatequeue: nsoperationqueue.mainqueue()) let data = mysession.datataskwithurl(nsurl(string: "https://www.google.com")!, completionhandler: myhandler) data.resume() } func myhandler(data: nsdata!, response: nsurlresponse!, error: nserror!) -> void { let s = nsstring(data: data, encoding: nsasciistringencoding) println(s) } func urlsession(session: nsurlsession, task: nsurlsessiontask, didcompletewitherror error: nserror?) { println("error: \(error)") } // handles https connections func urlsession(session: nsurlsession, didreceivechallenge challenge: nsurlauthentic...