16:40:16.840| WARNING*** : TDPusher[https://tiberiuslog.com:6984/aaron]: Unable to save remote checkpoint: Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo=0x1e9820b0 {NSErrorFailingURLStringKey=https://tiberiuslog.com:6984/aaron/_local/a9beb36d980742b9fe7d436d96eb48e8d3a5953f, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, NSErrorFailingURLKey=https://tiberiuslog.com:6984/aaron/_local/a9beb36d980742b9fe7d436d96eb48e8d3a5953f, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSUnderlyingError=0x1e8af490 "An SSL error has occurred and a secure connection to the server cannot be made.", NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x1d5fafd0>}
NSString * username = [[NSUserDefaults standardUserDefaults] objectForKey:@"username"];
NSString * syncpoint = [NSString stringWithFormat:@"%@/%@", @"https://username:pass...@tiberiuslog.com:6984", username];
newRemoteURL = [NSURL URLWithString:syncpoint];
_pull = [self.database replicationFromDatabaseAtURL:newRemoteURL];
_push = [self.database replicationToDatabaseAtURL:newRemoteURL];
This worked fine with my non-secure server at port 5984. And it seems that the SSL-enabled CouchDB is working correctly — I can view it in my browser and see a good certificate (https://tiberiuslog.com:6984), and I can hit it with curl without incident.
I'm running the latest RC7 of CouchCocoa and TouchDB. Any thoughts would be appreciated!
Cheers,
Aaron