HTTPS problem
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