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?
精彩评论