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.
Asked
Active
Viewed 2,759 times
0
-
Did you already *try* to use `https://`? – Jun 03 '11 at 14:14
-
When i test my web services ( wsdl) with soapui, it show an error : bad request. what's this mean please ? the problem is in my Web services or in my app ?? thanks – samir Jun 03 '11 at 14:38
2 Answers
5
Just use the https address, NSURLRequest and others are smart enough to take care of the encryption.

Remy Vanherweghem
- 3,925
- 1
- 32
- 43
-
When i test my web services ( wsdl) with soapui, it shows an error : bad request. what's this mean please ? the problem is in my Web services or in my app ?? thanks – samir Jun 03 '11 at 14:38
0
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?

Community
- 1
- 1

chilitechno.com
- 1,575
- 10
- 12
-
its the same thing. When i test my web services ( wsdl) with soapui, it show an error : bad request. what's this mean please ? the problem is in my Web services or in my app ?? thanks – samir Jun 03 '11 at 14:36
-
Need more information - getting a 500 error? Are the NSURLConnection delegates being called (assuming that's what you are using?) – chilitechno.com Jun 03 '11 at 14:38
-
Ok this is my problem. I am using ASIHTTPRequest and soap/wsdl web services.i have already used it with an other url ( development url) and it is forked fine, but now my client give me an other url ( wsdl, production url) but when i test it, it give me the error 400, bad request. i haver test it with soapui and it's the same thing – samir Jun 03 '11 at 14:47