이 코드를보십시오 :
- (BOOL)connection:(NSURLConnection *)connection canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace {
return [protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust];
}
- (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge {
if ([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust])
if ([trustedHosts containsObject:challenge.protectionSpace.host])
[challenge.sender useCredential:[NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust] forAuthenticationChallenge:challenge];
[challenge.sender continueWithoutCredentialForAuthenticationChallenge:challenge];
}
이 희망 그것을 도움이, 그것은 날짜와 시간을 변경해야 내 장치 설정, NAD는 ON 자동으로 설정이
Google에서 약간의 노력으로 이것을 찾으려고합니다. http://stackoverflow.com/questions/3916574/i-want-to-ignore-certificate-verification-where-and-how-to-do -it-with-xmlrpc-we 및 http://stackoverflow.com/questions/933331/how-to-use-nsurlconnection-to-connect-with-ssl-for-an-untrusted-cert –
위의 링크를 시도했지만, 그러나 나를 위해 가치가없는, –
나는 하루 종일을 잃어 버려서 그것을 얻었다, 그것은 날짜와 시간을 바꿀 필요가있는 나의 장치 설정이었고, 현재의 시간대를 위해 자동적으로 그것을 켜 놓았다. –