Hi,
I use NSURLConnection class to communicate to my Web Server (REST service), which returns XML data.
Code:
[NSUrlConnection sendSyncronousRequest:request
returningResponse:&response error:&error]
All works find on a normal connection, but when it comes to HTTPS/SSL based server, i get an error
The NSError message returns the following error
Quote:
|
The certificate for this server is invalid. You might connecting to a server that is pretending to be <'servername'>, which could put confidential info at risk
|
Now i could use NSURL's get/post request in an asynchronous way and ignore certificate errors (accept an untrusted certificate)
But i dont want to accept an untrusted certificate.
When i point my URL in Safari, it shows me
"Safari can't verify the identity of the website"
Is there anything i need to check?
Do i need to add the certificate in each and every device?
Any help would be appreciated