Intermittent SSL Error
<p>getting an intermittent SSL error on iOS.
I've turned off ATS, and we know this happens on OS versions &lt; iOS9 as well</p>

<blockquote>
  <p>Error Domain=NSURLErrorDomain Code=1011 "An SSL error has occurred and
  a secure connection to the server cannot be made."
  UserInfo={NSLocalizedDescription=An SSL error has occurred and a
  secure connection to the server cannot be made.,
  NSLocalizedRecoverySuggestion=Would you like to connect to the server
  anyway?, _kCFStreamErrorCodeKey=-9806 NSErrorFailingURLStringKey=, _kCFStreamErrorDomainKey=3, NSUnderlyingError=0x1471b600</p>
</blockquote>

<p>from our crittercism logs, seems like some users are able to replicate this. but we have not been able to </p>

<p><code>Would you like to connect to the server anyway?</code>&lt;-- this makes me suspect that there was an authentication challenge. how can i verify that?</p>

<p><code>kCFStreamErrorCodeKey=-9806</code> &lt;-- does anyone know what this error means?</p>

<p><strong>Edit:</strong></p>

<p><code>-9806</code> means <code>errSSLClosedAbort</code>
<a href="http://www.opensource.apple.com/source/Security/Security-55179.13/libsecurity_ssl/Security/SecureTransport.h">http://www.opensource.apple.com/source/Security/Security-55179.13/libsecurity_ssl/Security/SecureTransport.h</a></p>

<p>what can cause this? i don't think this is due to a spotty network because from our tracking tools, SSL connections to other hosts seem ok. and when a user hits this issue, it is re-produceable. seems to me like we need to inspect the failure with wireshark to get further information. but we have not been able to re-produce this. does anyone have ideas logging more information from apps in the wild to debug this?</p>