Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我在 mobileconfig 中安装了 .pfx 证书,我应该在服务器要求时做些什么,还是系统会自动处理它?
谢谢
我不是这个主题的专家,但是:mobileconfig 支持 pfx 证书,如此处所述,但我相信您必须实现 NSURLConnection 的委托才能完成握手,即
- (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
正如这篇文章中已经解释的那样。
然后你可以从这篇文章中找到一些有用的代码片段。
您应该声明 NSURLConnection 代表 connection:didReceiveData: connection:didReceiveResponse和 connectionDidFinishLoading。
connection:didReceiveData
connection:didReceiveResponse
connectionDidFinishLoading