xCode 9 - iOS 11: NSURLConnection - sendAsynchronousRequest fails : <p>I just downloaded the latest version of xCode (9.0 beta (9M136h)).</p>

<p>However, when I try to make a request to my server in iOS 11 simulator (Using NSURLConnection sendAsynchronousRequest), an error is received:</p>

<p>NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9807)
NSURLConnection finished with error - code -1202</p>

<p>NSError object contains the message - @"NSLocalizedDescription" : @"The certificate for this server is invalid. You might be connecting to a server that is pretending to be “***” which could put your confidential information at risk."  </p>

<p>The plist contains:</p>

<pre><code>&lt;key&gt;NSAppTransportSecurity&lt;/key&gt;
&lt;dict&gt;
    &lt;key&gt;NSAllowsArbitraryLoads&lt;/key&gt;
    &lt;true/&gt;
&lt;/dict&gt;
</code></pre>

<p>so it is not the problem in this case (I guess)</p>

<p>Needless to say that it is working in iOS 10/9/8</p>

<p>Any suggestions?</p>

<p>Thanks in advance!</p>
