Skip to content

Conversation

@ignaval
Copy link

@ignaval ignaval commented May 31, 2012

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

…to @"kCFStreamSocketSecurityLevelTLSv1_0SSLv3"
acidlemon added a commit to acidlemon/asi-http-request that referenced this pull request Jun 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants