I was getting the same certificate error from S3 and found that adding this to NSURLConnectionDelegate fixes the problem:
-(void)connection:(NSURLConnection *)connection willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge { if ([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust] && [challenge.protectionSpace.host hasSuffix:@"example.com"]) {
NOTE. You will need to change "example.com" to a domain you trust, or use a more sophisticated mechanism than "hasSuffix".
FYI Apple Technote TN2232 "HTTPS Server Trust Assessment" describes in detail why the certificate was rejected and how to process it: https://developer.apple.com/library/ios/technotes/tn2232/_index.html
Thanks to Gordon Henriksen for answering fooobar.com/questions/24843 / ... but using the older api.
source share