title: iOS NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
body: <p>I am getting this error whenever I try making a request to our server. It was working fine before we setup SSL, not it is all messed up..here is my code:</p>
  
  <pre><code>  // Setup URL POST Request..
  NSString* code4ArmourUrl = [NSString stringWithFormat:@"https://api.code4armour.com/index.php/user/login?"];
  
  NSMutableURLRequest* request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:code4ArmourUrl ]];
  [request setHTTPMethod:@"POST"];
  [request addValue:@"00000000000000000000000000000000" forHTTPHeaderField:@"X-api-key"];
  
  NSString* postString = [NSString stringWithFormat:@"email=%@&amp;password=%@",emailString,passwordString];
  postString = [postString stringByReplacingOccurrencesOfString:@"+" withString:@"%2b"];
  
  [request setHTTPBody:[postString dataUsingEncoding:NSUTF8StringEncoding]];
  
  
  // Make URL POST Request..
  [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError* connectionError) {
  </code></pre>
  
  <p>Any reason why this isn't working..I believe it is an issue with SSL but I don't know how to get around this without doing something hacky that Apple won't end up accepting on to the App Store?</p>
  
  <p>Any help would be greatly appreciated! Thanks.</p>