Reputation: 4551
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.
Upvotes: 0
Views: 2771
Reputation: 3955
Just use the https address, NSURLRequest and others are smart enough to take care of the encryption.
Upvotes: 5
Reputation: 1575
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?
Upvotes: 0