title: Why iOS8 SSL requests fail intermittently after migration from iOS7?
body: <p>I have an iOS app, which works fine on iOS7. Now we are testing it on iOS8, and when running under iOS8, we have SSL issues. Some (but not all) SSL requests fail. All requests are against the same server, with a SSL certificate that is valid, and works on desktop, and works when the same app is running iOS7.</p>
  
  <p>The error we are getting is <code>kCFURLErrorSecureConnectionFailed</code>, which Apple documents to be:</p>
  
  <blockquote>
    <p>The secure connection failed for an unknown reason.</p>
  </blockquote>
  
  <p>Also, I get the following logged in the console: </p>
  
  <blockquote>
    <p>CFNetwork SSLHandshake failed (-9846)</p>
  </blockquote>
  
  <p>We are using NSURLConnection. We have implemented <code>connection: willSendRequestForAuthenticationChallenge</code>, but it does not get called when we get the error.</p>
  
  <p>Do anyone know if this is a known iOS8 issue? What would be my next steps to finding out, why these requests fail? </p>