pokeb/asi-http-request — pull request #325 by ignaval (2012-05-31 06:54:22+00:00)
Title: Fixed SSL validation error in IOS 5.0.1

Validation of SSL certificates failed on IOS 5.0.1 with

error = Error Domain=ASIHTTPRequestErrorDomain Code=1 "A connection failure occurred: SSL problem (Possible causes may include a bad/expired/self-signed certificate, clock set to wrong date)" UserInfo=0x18460b0 {NSUnderlyingError=0x1853ab0 "The operation couldn’t be completed. (OSStatus error -9800.)", NSLocalizedDescription=A connection failure occurred: SSL problem (Possible causes may include a bad/expired/self-signed certificate, clock set to wrong date)}

after setting the kCFStreamSSLLevel property to @"kCFStreamSocketSecurityLevelTLSv1_0SSLv3" (as recommended here https://developer.apple.com/library/ios/#technotes/tn2287/_index.html#//apple_ref/doc/uid/DTS40011309) the validation started working again, and still works on IOS 5.1.1