title: Ignore ssl certification MKNetworkKit
body: <p>So it seems that ASIHTTPRequest allows you to ignore the certificates on https:// endpoints. I'm currently using MKNetworkKit and have implemented all my calls. Unfortunately, our testing server is on https but does not have a SSL certificate.</p>
  
  <p>I'm able to connect fine using a curl with the -k command. I've tried various things in MKNetworkKit to ignore the NSURLAuthenticationChallenge, but to no avail. The latest thing I tried was the following:</p>
  
  <pre><code>op.authHandler = ^(NSURLAuthenticationChallenge *challenge)
  {
      NSURLCredential *credential = [NSURLCredential credentialWithUser:_userName password:password persistence:NSURLCredentialPersistenceNone];
      [challenge.sender useCredential:credential forAuthenticationChallenge:challenge];
  };
  </code></pre>
  
  <p>This allowed me to actually get a 401 error returned (instead of being blank). Looking at the curl string, MKNetworkKit strips my username/password when the above block hits. I'm not sure if that's progress or not.</p>
  
  <p>Anyone know how to simply ignore the SSL certificate?</p>
  
  <p>Edit:</p>
  
  <p>I had to update MKNetwork kit to get the new method <code>ShouldContinueWithInvalidCertificate</code> on <code>MKNetworkOperation</code> and my testing server got the certError fixed.</p>
  
  <p>However, now I'm having a weird error happening. I'm still unable to get any return from two specific endpoints on the server. I look at the request, copy it into the command as a curl, and it immediately returns results. I'm not getting an error either from the operation.</p>
  
  <p>What's happening here?</p>