make it use correct ssl settings for ios 5.0 and 5.0.1
revised ssl settings -- last commit didn't work unless validation was turned off or client certificates were  used
Merge remote-tracking branch 'ralphshao/master' into upstream-master