title: How can I call a https endpoint by NSURLConnection sendSynchronousRequest in case of untrusted certificate?
body: <p>I have an IOS6 app, that connects to a REST API to fetch some data.</p>
  
  <p>I use NSURLConnection sendSynchronousRequest in my data fetcher class, and I call its methods by GCD async pattern with blocks from my controller classes. So far so good.</p>
  
  <p>My problem, that I change the API endpoint to https, its certificate is self-signed (I know its secure problems etc, but it is out of question for now). </p>
  
  <p>By using sendSynchronousRequest I can't bypass this problem, because to bypass it, I need to set delegate for NSURLConnection, but in case of sendSynchronousRequest I cant' set delegate, delegate methods just called in case of async calls.</p>
  
  <p>I don't like async request calling, I adore this GCD/sync call pattern very much, it works like a charm, it simple and clear.</p>
  
  <p>So how can I make calls to a https api endpoint by GCD and , NSURLConnection sendSynchronousRequest that bypasses untrusted certificate problem?</p>
  
  <p>Thanks to all!</p>