title: Enforcing TLS-secure connections in iOS apps MFP 7.1
body: <p>I have configured my IHS to enable the server requirement for ATS as the following:</p>
  
  <p><a href="https://stackoverflow.com/questions/37469034/worklight-6-2-ios-binary-issue-with-mobilefirst-7-1">Worklight 6.2 iOS binary issue with MobileFirst 7.1</a></p>
  
  <p>I build and complied my app using xCode 7.3 which adds the App transport security to plist.</p>
  
  <p>The problem is when I follow this URL to do it as production configuration, I'm getting an error:</p>
  
  <p><a href="https://www.ibm.com/support/knowledgecenter/SSHSCD_7.1.0/com.ibm.worklight.dev.doc/dev/t_enforce_TLS.html" rel="nofollow noreferrer">https://www.ibm.com/support/knowledgecenter/SSHSCD_7.1.0/com.ibm.worklight.dev.doc/dev/t_enforce_TLS.html</a></p>
  
  <p>My plist config:</p>
  
  <pre><code> &lt;key&gt;NSAppTransportSecurity&lt;/key&gt;
      &lt;dict&gt;
          &lt;key&gt;protocol&lt;/key&gt;
          &lt;string&gt;https&lt;/string&gt;
  
          &lt;key&gt;port&lt;/key&gt;
          &lt;string&gt;443&lt;/string&gt; // since my connection through Datapower I'm putting 443
      &lt;/dict&gt;
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>2016-06-07 11:58:09.011 ManulifeBankMobile[24781:382306] App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
  2016-06-07 11:58:09.047 ManulifeBankMobile[24781:382280] CFNetwork SSLHandshake failed (-9824)
  2016-06-07 11:58:09.048 ManulifeBankMobile[24781:382280] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824)
  </code></pre>
  
  <p>The only configuration working is (But I don't need to do as it is insecure):</p>
  
  <pre><code>&lt;key&gt;NSAppTransportSecurity&lt;/key&gt;
  &lt;dict&gt;
    &lt;!--Include to allow all connections (DANGER)--&gt;
    &lt;key&gt;NSAllowsArbitraryLoads&lt;/key&gt;
        &lt;true/&gt;
  &lt;/dict&gt;
  </code></pre>
  
  <p>Am I missing something?</p>