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?

link|improve this question

33% accept rate
can somebody please answer this.. I need to get this working!! :( – dips Dec 16 '11 at 22:23
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.