• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Https with bad certs over NSURLConnection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: TIFF Error?
  • Next by Date: How to control the blinking interval of NSTextView Insertion Point
  • Previous by thread: override windowControllerDidLoadNib in Java?
  • Next by thread: How to control the blinking interval of NSTextView Insertion Point
  • Index(es):
    • Date
    • Thread