Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios RestKit可以进行HTTP摘要身份验证吗?_Ios_Objective C_Restkit_Restkit 0.20 - Fatal编程技术网

Ios RestKit可以进行HTTP摘要身份验证吗?

Ios RestKit可以进行HTTP摘要身份验证吗?,ios,objective-c,restkit,restkit-0.20,Ios,Objective C,Restkit,Restkit 0.20,我正在尝试使用iOS中的RestKit创建http客户端。我的问题很简单,“RestKit可以进行HTTP摘要身份验证吗?” 我知道如何使用以下工具进行基本身份验证: NSURL *baseUrl = [[NSURL alloc]initWithString:@"https://helloEveryone.com"]; RKObjectManager* objectManager = [RKObjectManager managerWithBaseURL:baseUrl]; [objectMan

我正在尝试使用iOS中的RestKit创建http客户端。我的问题很简单,“RestKit可以进行HTTP摘要身份验证吗?”

我知道如何使用以下工具进行基本身份验证:

NSURL *baseUrl = [[NSURL alloc]initWithString:@"https://helloEveryone.com"];
RKObjectManager* objectManager = [RKObjectManager managerWithBaseURL:baseUrl];
[objectManager.HTTPClient setAuthorizationHeaderWithUsername:@"user" password:@"password"];
但我得到了这个错误的回应:

Underlying HTTP request operation failed with error: Error Domain=NSURLErrorDomain 
Code=-1202 "The certificate for this server is invalid. 
You might be connecting to a server that is pretending to be “helloEveryone.com” 
which could put your confidential information at risk." 
我知道我需要做一个摘要身份验证,但我不知道RestKit是否能够做到这一点

如果答案是“是”。谁能告诉我怎么做?(我正在使用RestKit 0.20.3)

非常感谢


已解决:这是一个证书错误。我找到了解决方案

错误表明是证书错误,而不是身份验证错误。服务器证书有效且可信吗?谢谢。你是对的。我已使用该解决方案编辑了我的帖子。可能与