• 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 problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HTTPS problem


  • Subject: HTTPS problem
  • From: Artem <email@hidden>
  • Date: Mon, 25 Oct 2010 16:11:30 +0300

My app is communicating to several secured servers (SSL). One of those working with created by me self-signed certificate. Problem is when app is tries to connect to that server with:

- (void)continueWithoutCredentialForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge; (1)

which is called from

- (void)connection:(NSURLConnection*)theConnection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge*)theChallenge; (2)

method it uses built-in anchor certificates, but connection fails (as expected), then it tries to do that with my cert and fails again because session was cached. App thinks that if that server isn't trusted than it doesn't need any checks again. And method (2) not even called.

So how can I reset the session or something like that to make it works?
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Drag and drop between 2 table views
  • Next by Date: Audio Streaming with Cocoa
  • Previous by thread: Re: Drag and drop between 2 table views
  • Next by thread: Thread not registered mystery under GC
  • Index(es):
    • Date
    • Thread