Ios RestKit可以进行HTTP摘要身份验证吗?
我正在尝试使用iOS中的RestKit创建http客户端。我的问题很简单,“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
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)
非常感谢
已解决:这是一个证书错误。我找到了解决方案错误表明是证书错误,而不是身份验证错误。服务器证书有效且可信吗?谢谢。你是对的。我已使用该解决方案编辑了我的帖子。可能与