title: ios9 HTTP load failed kCFStreamErrorDomainSSL (-9802)
body: <p>I have an issue that appeared recently.</p>
  
  <p>In my code, I load some images from an HTTP server:</p>
  
  <pre><code>let urlPicture = "http://images.mydomain.com/" + self.currentUser.pic
  imageView.sd_setImageWithURL(NSURL(string: urlPicture))
  </code></pre>
  
  <p>I do not use HTTPS for my images server because I guess it would have been too slow, but maybe I'm wrong on this point.
  A nodejs server is running in an AWS EC2 instance, and listens on port 80 to manage images.</p>
  
  <p>Due to ATS restrictions, I declare an exception in my Info.plist file for my images subdomain:</p>
  
  <pre><code>&lt;key&gt;NSAppTransportSecurity&lt;/key&gt;
  &lt;dict&gt;
      &lt;key&gt;NSExceptionDomains&lt;/key&gt;
      &lt;dict&gt;
          &lt;key&gt;images.mydomain.com&lt;/key&gt;
          &lt;dict&gt;
              &lt;key&gt;NSExceptionAllowsInsecureHTTPLoads&lt;/key&gt;
              &lt;true/&gt;
              &lt;key&gt;NSExceptionMinimumTLSVersion&lt;/key&gt;
              &lt;string&gt;TLSv1.2&lt;/string&gt;
              &lt;key&gt;NSExceptionRequiresForwardSecrecy&lt;/key&gt;
              &lt;true/&gt;
              &lt;key&gt;NSIncludesSubdomains&lt;/key&gt;
              &lt;true/&gt;
              &lt;key&gt;NSRequiresCertificateTransparency&lt;/key&gt;
              &lt;false/&gt;
              &lt;key&gt;NSThirdPartyExceptionAllowsInsecureHTTPLoads&lt;/key&gt;
              &lt;false/&gt;
              &lt;key&gt;NSThirdPartyExceptionMinimumTLSVersion&lt;/key&gt;
              &lt;string&gt;TLSv1.2&lt;/string&gt;
              &lt;key&gt;NSThirdPartyExceptionRequiresForwardSecrecy&lt;/key&gt;
              &lt;true/&gt;
          &lt;/dict&gt;
      &lt;/dict&gt;
  &lt;/dict&gt;
  </code></pre>
  
  <p>Recently I added a new subdomain on the <strong>same</strong> AWS instance: <a href="https://api.mydomain.com" rel="nofollow">https://api.mydomain.com</a>
  Another nodejs server listens on 443 port and manages the API.</p>
  
  <p>Since this change, everything is fine in my app when I call the API, but when I load images I am facing the following issue:</p>
  
  <pre><code>NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
  </code></pre>
  
  <p>Any idea fo fix that?</p>