I watched sometimes SSL errors trough a HTTPS connection using AFNetworking under iOS 7.
Following error message appeared rarely on console:
An SSL error has occurred and a secure connection to the server cannot be made.
associated with
CFNetwork SSLHandshake failed (-9806) NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9806)
or
CFNetwork SSLHandshake failed (-9810) NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9810)
On http://www.opensource.apple.com/source/Security/Security-55179.13/libsecurity_ssl/Security/SecureTransport.h you can find explanation for these error codes:
errSSLClosedAbort = -9806, /* connection closed via error */
errSSLInternal = -9810, /* Internal error */
Has anyone run into the same problem?
Today Apple released iOS 7.0.6 that includes a fix for SSL connection verification.
For me, it sounds more related to issues like this one: Receiving SSL error in iOS7 GM - "AddTrust External CA Root" is not trusted? (error code -9813)
But perhaps the new iOS version bring some improvement as a side effect...
EDIT: In iOS 7.0.6 another error (double "goto fail" in if-else-if-statement) was fixed.