Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-25-2011, 01:49 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 44
kamy is on a distinguished road
Default https and NSURLConnection

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

Last edited by kamy; 11-25-2011 at 02:00 AM.
kamy is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 399
16 members and 383 guests
chiataytuday, Clouds, David-T, dedeys78, Duncan C, e2applets, EvilElf, iekei, ipodphone, leostc, LunarMoon, Murphy, QuantumDoja, sacha1996, Sami Gh, teebee74
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,127
Posts: 402,912
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:38 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0