草庐IT

setAuthenticationChallengeBlock

全部标签

ios - AFNetworking setAuthenticationChallengeBlock

我的服务器需要客户端证书,在搜索和阅读AFNetworking文档中的示例一段时间后,我尝试设置setAuthenticationChallengeBlock并提供客户端证书。在浏览器中提供的certifacete工作正常。[requestOperationsetAuthenticationChallengeBlock:^(NSURLConnection*connection,NSURLAuthenticationChallenge*challenge){NSLog(@"AuthenticationChallenge");NSString*thePath=[[NSBundlemainB