开发者

ssl connection in iPhone App

My question is, i would like to use an ssl connection in my IOS Application. there is aself-signed ssl in the server. is there anything to do in my iPhone app ( any configuration ) or just i will access my url with https instead of开发者_开发技巧 http. thanks for your answer.


Just use the https address, NSURLRequest and others are smart enough to take care of the encryption.


If you're using ASIHTTPRequest you can set this:

[request setValidatesSecureCertificate:NO];

Otherwise, look at this answer for NSURLConnection:

How to use NSURLConnection to connect with SSL for an untrusted cert?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜