Hi. I am making a test app almost exactly like the Tic Tac Toe example from WWDC19 https://developer.apple.com/videos/play/wwdc2019/713
The biggest differences are that instead of of connecting 2 ios apps together, my server is macOS 10.15 and my cleint is iOS13.
I create the bonjour listener on my server and start it up. I then use the NWBrowser on my iOS device, just like in the sample code. I create my NWConnection objects just like in the sample code.
The problem happens when I call NWConnection.send(
On my client I get this in the NWConnection.stateUpdateHandler failed:
2019-06-14 08:36:10.853632-0400 ClientSample[622:125162] [] tcp_output [C1.6.1:2] flags=[R.] seq=2719089173, ack=1140980224, win=1025 state=CLOSED rcv_nxt=1140980224, snd_una=2719089173
failed with error: POSIXErrorCode: Network is down
On my server, I get this in the same update handler failed case:
2019-06-14 08:33:52.884427-0400 ServerSample[1872:22136] [BoringSSL] boringssl_session_handshake_error_print(112) [C1:1][0x1010052c0] 4313953176:error:100000ae:SSL routines:OPENSSL_internal:NO_CERTIFICATE_SET:/BuildRoot/Library/Caches/com.apple.xbs/Sources/boringssl/boringssl-264/ssl/tls13_server.cc:690:
2019-06-14 08:33:52.884495-0400 ServerSample[1872:22136] [BoringSSL] nw_protocol_boringssl_handshake_negotiate_proceed(684) [C1:1][0x1010052c0] handshake failed at state 0
failed with error: -9858: Optional(handshake failed)
I tried creating a self signed cert on my server to see if that was the issue. I followed these instructions:
https://devcenter.heroku.com/articles/ssl-certificate-self
I would also like to point out that the server portion of this would be part of a mac app, so having all of our customers install certs would not be an option.
Not sure where to go from here.
Thanks,
Rob