DidReceiveAuthenticationChallenge does not receive a call

I am using iOS sdk5.0. I use the NSURLConnection link and create a request. But my control is not part of the didReceiveAuthenticationChallenge method. Is didReceiveAuthenticationChallenge not called in iOS5.0?

+5
source share
3 answers

According to the docs NSURLConnectionDelegate

connection:canAuthenticateAgainstProtectionSpace:
connection:didReciveAuthenticationChallenge:
connection:didCancelAuthenticationChallenge:

outdated and the new code should accept

connection:willSendRequestForAuthenticationChallenge

Senior delegates will still be called to ensure compatibility, but they will spend more time considering the authentication problem.

+14
source

(. ). : https://gist.github.com/1675763. AUTH_NEW. . 40: ", iOS 5 DSA".

, , . , . java keytool (Java openssl +) . DSA. , RSA. , .

, , DSA. , openssl RSA , , , , .

: , RSA, DSA.

+1

I would like to emphasize what Chris Westin does. And besides, I actually created the RSA key, but accidentally copied the DSA to the server. Therefore, when in doubt, you need to use the -v (verbose) command to make sure you have the appropriate certificate. Example:

keytool -list -v -keystore <name of keystore here>
0
source

All Articles