title: How to use NSURLConnection to connect with SSL for an untrusted cert?
body: <p>I have the following simple code to connect to a SSL webpage</p>
  
  <pre><code>NSMutableURLRequest *urlRequest=[NSMutableURLRequest requestWithURL:url];
  [ NSURLConnection sendSynchronousRequest: urlRequest returningResponse: nil error: &amp;error ];
  </code></pre>
  
  <p>Except it gives an error if the cert is a self signed one <code>Error Domain=NSURLErrorDomain Code=-1202 UserInfo=0xd29930 "untrusted server certificate".</code> Is there a way to set it to accept connections anyway (just like in a browser you can press accept) or a way to bypass it?</p>