title: ASIHTTPRequest with SSL failed on iOS 5.0/5.0.1
body: <p>I am using ASIHTTPRequest v1.8.1 to make a HTTPS request. The problem is that it doesn't work on iOS 5.0 &amp; 5.0.1, while on 5.1 &amp; 5.1.1 it works fine. The code is quite simple:</p>
  
  <pre><code>__block ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:[NSURL URLWithString:RemoteNotiURL]];
  [request setPostValue:@"i" forKey:@"plat"];
  [request setPostValue:token forKey:@"token"];
  [request setValidatesSecureCertificate:NO];
  
  [request setCompletionBlock:^{
      NSLog(@"done");
  }];
  
  [request setFailedBlock:^{
      NSLog(@"error = %@", [request error]);
  
  }];
  
  [request startAsynchronous];
  </code></pre>
  
  <p><code>RemoteNotiURL</code> is a URL like <a href="https://xxx.example.com" rel="nofollow">https://xxx.example.com</a></p>
  
  <p>The error is:</p>
  
  <pre><code>error = Error Domain=ASIHTTPRequestErrorDomain Code=1 "A connection failure occurred: SSL problem (Possible causes may include a bad/expired/self-signed certificate, clock set to wrong date)" UserInfo=0x18460b0 {NSUnderlyingError=0x1853ab0 "The operation couldn’t be completed. (OSStatus error -9800.)", NSLocalizedDescription=A connection failure occurred: SSL problem (Possible causes may include a bad/expired/self-signed certificate, clock set to wrong date)}
  </code></pre>
  
  <p>What can I do about this?</p>