NSURLConnection Certificate Problem
NSURLConnection Certificate Problem
- Subject: NSURLConnection Certificate Problem
- From: Jay Koutavas <email@hidden>
- Date: Wed, 19 Jan 2005 15:06:14 -0500
Title: NSURLConnection Certificate
Problem
I'm trying to use NSURLConnection to
POST a request to an https://-based web page. I get the following
error from my NSURLConnection didFailWithError: handler:
005-01-19 13:40:18.215 fooApp[13519] got
connection error [NSError "bad server certificate"
Domain=NSURLErrorDomain Code=-1203 UserInfo?={
NSErrorFailingURLKey? = https://foo.net/foopage;
NSErrorFailingURLStringKey? =
"https://foo.net/foopage";
NSLocalizedDescription? = "bad server
certificate";
When I try to open the https://
address from Safari, I get an alert worded:
Safari can't verify the identity of the website
"foo.net".
The certificate for this website was signed by an unknown
certifying authority. You might be connecting to a websire that is
pretending to be "foo.net" which could put your confidential
information at risk. Would you like to connect to the website
anyway?" <Cancel> <Continue>
(clearly "foo.net" is a
made-up name)
Hitting the Continue button then
allows the page to load. Doing this does not however clear the error
that my app is getting.
How does one programatically
"hit the continue button" in a situation like
this?
Thank you,
/Jay
--
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Jay
Koutavas
mailto:email@hidden
Heynow
Software
http://www.heynow.com
Windham, New Hampshire, USA
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden