I'm sending a https request from Mac OS X (not iphone) to web server synchronously using
NSData* data = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];
However I'm getting error Code=-1202 - "untrusted server certificate"
I have a self signed certificate from the server which I installed on my Mac's keychain (and verified that https requests from browser are going fine).
I don't want to ignore the certificate by sending data asynchronously and handling didReceiveAuthenticationChallenge
Should sendSynchronousRequest
not work if the certificate is installed in keychain. Am I missing something?