Well I've been compiling my own from source so I think I have the latest 
code. I also tried turning off App Transport Security entirely and it also 
didn't work. I had to just disable SSL in DatabaseSharer.swift in the Init:

public init(database: CBLDatabase, nickname: String, port: UInt16 = 
kDefaultPort, ssl: Bool = false) throws


It works really well when it can connect :-)

I've made a new build from source just to be sure I have the latest and I 
do.

I disabled ATS completely:

<key>NSAppTransportSecurity</key>
<dict>
 <key>NSAllowsArbitraryLoads</key>
 <true/>
</dict>




But I still get SSL Handshake errors in the log output:

PeerSyncManager: Saved new nickname 'Optional("Plusser")'
PeerSyncManager: ---- START ---- (Couchbase Lite 1.1+ (unofficial)) 
DatabaseSharer: My UUID is 'c66a72410f2f58d722bb2e6528eb52ab72293211' 
DatabaseSharer: Bonjour name is 'Plusser 
[c66a72410f2f58d722bb2e6528eb52ab72293211]' 
DatabaseSharer: Sharing at <Optional(https://iPhone-6-Plus.local:59844/)> 
DatabaseSharer: Sharing database... 
DatabaseSharer: Publishing seq=0 
Browser found <NSNetService 0x15d5b6d60> local. _peersync._tcp. Simmie6 [
bc01b0071d58caa8f86f1c80d95d918658e93c34] 
Browser found <NSNetService 0x15d566b80> local. _peersync._tcp. Simmie [
bc01b0071d58caa8f86f1c80d95d918658e93c34] 
Browser removing <NSNetService 0x15d62c750> local. _peersync._tcp. Simmie [
bc01b0071d58caa8f86f1c80d95d918658e93c34] 
SAVE 
PairingManager: Adding paired OnlinePeer['Simmie6', 
bc01b0071d58caa8f86f1c80d95d918658e93c34 at #0] 
*** Paired OnlinePeer['Simmie6', bc01b0071d58caa8f86f1c80d95d918658e93c34 
at #0] went online *** 
SyncedDB[Simmie6]: Added OnlinePeer['Simmie6', 
bc01b0071d58caa8f86f1c80d95d918658e93c34 at #0]; latest seq=0 
PairingManager: Saved pairings: ["bc01b0071d58caa8f86f1c80d95d918658e93c34": 
{ 
    nick = Simmie6; 
    seq = 0; 
}] 

SyncedDB[Simmie6]: Got latest seq=0 
SyncedDB[Simmie6]: Got latest seq=1 
SyncedDB[Simmie6]: Resolving address 
SyncedDB[Simmie6]: Pulling from <https://Voyager.local.:59844/grocery-sync> 
for UUID bc01b0071d58caa8f86f1c80d95d918658e93c34 
2015-09-23 14:46:08.793 GrocerySync[331:27961] CFNetwork SSLHandshake 
failed (-9805) 
2015-09-23 14:46:08.813 GrocerySync[331:27961] CFNetwork SSLHandshake 
failed (-9805) 
2015-09-23 14:46:08.835 GrocerySync[331:27961] CFNetwork SSLHandshake 
failed (-9805) 
2015-09-23 14:46:08.836 GrocerySync[331:27961] NSURLSession/NSURLConnection 
HTTP load failed (kCFStreamErrorDomainSSL, -9805) 
SyncedDB[Simmie6]: Replication stopped with error An SSL error has occurred 
and a secure connection to the server cannot be made.




Thanks,

Brendan

On Wednesday, September 23, 2015 at 2:30:09 PM UTC-6, Jens Alfke wrote:
>
>
> On Sep 23, 2015, at 1:09 PM, Brendan Duddridge <[email protected] 
> <javascript:>> wrote:
>
> Do I need to disable ATS to make it work though? I get the following error 
> when I test it from my 6 Plus to the Simulator:
>
>
> There are some issues with P2P SSL connections in 1.1, so until 1.1.1 I’d 
> recommend not enabling SSL in the listener.
> That, in turn, means that under iOS 9 you’ll have to disable App Transport 
> Security for the “local” domain.
>
> (1.1.1 should be out today. Apparently the downloads page has been updated 
> and we’re just waiting for the new page to propagate through the series of 
> tubes that is our CMS.)
>
> —Jens
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/b98ef592-2cf4-4569-8dfe-126140d94889%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to