Https with bad certs over NSURLConnection
Https with bad certs over NSURLConnection
- Subject: Https with bad certs over NSURLConnection
- From: Andrei Tapolow <email@hidden>
- Date: Tue, 22 Jun 2004 19:01:39 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am loading links with NSURLConnection, I do this by setting up an
instance of NSURLRequest.
The problem I have occurs under the following situation:
b" The NSURL in question is "
https://" (secure)
b" The cert can't be validated
What is occurring is that the NSURLConnection promptly calls its
delegate function:
connection:didFailWithError:
The NSError is filled with
b" Error = "bad server certificate"
b" Domain = NSURLErrorDomain
b" Code = -1203
b" UserInfo =
b& NSErrorFailingURLKey = <url>
b& NSErrorFailingURLStringKey = <url>
b& NSLocalizedDescription = "bad server certificate"
Now, what I want is a chance to present the user with "Certificate
can't be validated, do you wish to proceed?" But I have no idea how to
recover from this or intercept the cert or anything. Ugh!
Help?
Thanks!
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1
Comment: 93, 93/93
iQA/AwUBQNjkinouKvXM/BhwEQLSwgCeLjUXIfyOv+8klDUpl6XL0cslhqcAn3HD
MduEdVO7j384T68m85dIZ0FK
=410k
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.