title: HTTPS with NSURLConnection - NSURLErrorServerCertificateUntrusted
body: <p>I have an application that connects fine over http.  When trying https I got the error that says that the root cert is not trusted.  I found URLs for my site certificate, its CA certificate, and the CA's root certificate and have added them through Safari to the phone.  Now when I go to Preferences -> General -> Profiles I can see all my certificates that go all the way up the chain.  There is a red unsigned label on each certificate.  Still when I connect I get the NSURLErrorServerCertificateUntrusted error.  I'm trying to figure where to go next.  </p>
  
  <p>Any help would be great.  The only other thing that may affect this, is that I am connecting to an odd port.  So my url is www.domain.com:port. Does the port number create a certificate - domain name mismatch?</p>
  
  <p>Now I have used the iPhone Configuration Utility to add a configuration profile to the phone.  It has my root certificate, ca certificate, and site certificate.  The profile on the phone says its verified.  In the details I can see my three certificates.  But when I try to connect, I still get the untrusted certificate error.  Any suggestions?</p>
  
  <p>Just trying to see if anyone else can help on this?</p>