title: How can I allow https connection using AFNetworking?
body: <p>I have AFNetworking set up but it is not accept https urls. How can I get AFNEtworking to connect via ssl.</p>
  
  <p>I have the following code:</p>
  
  <pre><code>  NSMutableURLRequest *apiRequest =
  [self multipartFormRequestWithMethod:@"POST"
                                  path: pathstr
                            parameters: params
             constructingBodyWithBlock: ^(id &lt;AFMultipartFormData&gt;formData)
             {
                 //TODO: attach file if needed
             }];
  
  
  
  AFJSONRequestOperation* operation = [[AFJSONRequestOperation alloc] initWithRequest: apiRequest];
  [operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
      //success!
      completionBlock(responseObject);
  } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
      //failure :(
  
      NSLog(@"%@", error);
      completionBlock([NSDictionary dictionaryWithObject:[error localizedDescription] forKey:@"error"]);
  }];
  
  [operation start];
  </code></pre>