서버 연결에 NSURLConnection을 사용하는 경우 대리인에 다음 방법 : 당신은 애플이 샘플을 통해 보는
- (BOOL)connection:(NSURLConnection *)conn canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace;
// A delegate method called by the NSURLConnection when something happens with the
// connection security-wise. We defer all of the logic for how to handle this to
// the ChallengeHandler module (and it's very custom subclasses).
- (void)connection:(NSURLConnection *)conn didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
// A delegate method called by the NSURLConnection when you accept a specific
// authentication challenge by returning YES from -connection:canAuthenticateAgainstProtectionSpace:.
// Again, most of the logic has been shuffled off to the ChallengeHandler module; the only
// policy decision we make here is that, if the challenge handle doesn't get it right in 5 tries,
// we bail out.
I 조언 : Advanced Url Connections
당신은 서버에 인증하기 위해 우리 인증서 하시겠습니까? – Nekto
예. 맞습니다. 나는 인증을 끝내는 것 같다. –