title: Swift 2 - Xcode 7.0 Cannot Access HTTPS site with unstrusted SSL Certificate
body: <p>Experts, I'm a Beginner in IOS 9 / XCODE 7 / Swift 2 Development Kit </p>
  
  <p>I'm trying to create an ios app that simply route to Web Application in HTTPS protocol. Below is my code so far in <code>ViewController.swift</code></p>
  
  <pre><code>import UIKit
  
  class ViewController: UIViewController {
  
      @IBOutlet var myWebView: UIWebView!
  
      /**
       * Function to Display the Web Application initial URL
       */
      func loadAppURL(){
          let siteAddress = "https://domain:8443/path/to/page"
          let url = NSURL (string: siteAddress)
          let urlRequest = NSURLRequest(URL: url!)
          myWebView.loadRequest(urlRequest)
      }
  
      override func viewDidLoad() {
          super.viewDidLoad()
          loadAppURL()
      }
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Dispose of any resources that can be recreated.
      }
  }
  </code></pre>
  
  <p>While Building my App it shows the below Error Message </p>
  
  <blockquote>
    <p>2015-10-01 01:05:13.879 Web Page Tester[2947:31838]
    NSURLSession/NSURLConnection HTTP load failed
    (kCFStreamErrorDomainSSL, -9807)</p>
  </blockquote>
  
  <p>and if i try building my app instead of "<a href="https://domain:8443/path/to/page">https://domain:8443/path/to/page</a>" with "<a href="http://www.apple.com">http://www.apple.com</a>" its works fine.</p>
  
  <p>I can access my web application in Safari and it asks for accepting the security risks. and i accept it and i can access my Application.</p>
  
  <p>Guide me to fix my issues, Thanks in advance.</p>