hello,
so I set max tls to 1.2 and trying to use terminal for packet trace. However, I never really did packet tracing in the past as I rarely dealt server side. I only studied fundamental network course in uni and I mostly worked front-end, so doing server related set up is very new to me. Can you give me an advise on how to search the packet that I need to be looking for? is there easier program that I can use other than using "sudo tcpdump -I en0 -n"? Maybe I am doing the packet trace wrong if I am running both app on the same MacOS?
I appreciate your help!
The error I get for server side app
2022-08-12 10:45:52.428775+0900 bhapticsPlayerSUI[2591:36563] [boringssl] boringssl_context_handle_fatal_alert(1967) [C6:2][0x108f0c9b0] write alert, level: fatal, description: handshake failure
2022-08-12 10:45:52.428873+0900 bhapticsPlayerSUI[2591:36563] [boringssl] boringssl_context_error_print(1957) [C6:2][0x108f0c9b0] Error: 4444958104:error:100000b8:SSL routines:OPENSSL_internal:NO_SHARED_CIPHER:/AppleInternal/Library/BuildRoots/20d6c351-ee94-11ec-bcaf-7247572f23b4/Library/Caches/com.apple.xbs/Sources/boringssl/ssl/handshake_server.cc:841:
2022-08-12 10:45:52.429811+0900 bhapticsPlayerSUI[2591:36563] [boringssl] boringssl_session_handshake_incomplete(86) [C6:2][0x108f0c9b0] SSL library error
2022-08-12 10:45:52.429920+0900 bhapticsPlayerSUI[2591:36563] [boringssl] boringssl_session_handshake_error_print(41) [C6:2][0x108f0c9b0] Error: 4444958104:error:100000b8:SSL routines:OPENSSL_internal:NO_SHARED_CIPHER:/AppleInternal/Library/BuildRoots/20d6c351-ee94-11ec-bcaf-7247572f23b4/Library/Caches/com.apple.xbs/Sources/boringssl/ssl/handshake_server.cc:841:
connection 5 did fail, error: -9858: Optional(handshake failed)
-9858: Optional(handshake failed)
error I get from client app
2022-08-12 10:45:52.428835+0900 SwiftWebSocketClient[3108:41786] [boringssl] boringssl_context_handle_fatal_alert(1967) [C1.1:2][0x13de06490] read alert, level: fatal, description: handshake failure
2022-08-12 10:45:52.429871+0900 SwiftWebSocketClient[3108:41786] [boringssl] boringssl_session_handshake_incomplete(86) [C1.1:2][0x13de06490] SSL library error
2022-08-12 10:45:52.429890+0900 SwiftWebSocketClient[3108:41786] [boringssl] boringssl_session_handshake_error_print(41) [C1.1:2][0x13de06490] Error: 5352022792:error:10000410:SSL routines:OPENSSL_internal:SSLV3_ALERT_HANDSHAKE_FAILURE:/AppleInternal/Library/BuildRoots/20d6c351-ee94-11ec-bcaf-7247572f23b4/Library/Caches/com.apple.xbs/Sources/boringssl/ssl/tls_record.cc:594:SSL alert number 40
2022-08-12 10:45:52.429903+0900 SwiftWebSocketClient[3108:41786] [boringssl] boringssl_session_handshake_error_print(41) [C1.1:2][0x13de06490] Error: 5352022792:error:1000009a:SSL routines:OPENSSL_internal:HANDSHAKE_FAILURE_ON_CLIENT_HELLO:/AppleInternal/Library/BuildRoots/20d6c351-ee94-11ec-bcaf-7247572f23b4/Library/Caches/com.apple.xbs/Sources/boringssl/ssl/handshake.cc:670:
2022-08-12 10:45:52.429913+0900 SwiftWebSocketClient[3108:41786] [boringssl] nw_protocol_boringssl_handshake_negotiate_proceed(757) [C1.1:2][0x13de06490] handshake failed at state 12288: not completed
2022-08-12 10:45:52.438117+0900 SwiftWebSocketClient[3108:41786] Connection 1: received failure notification
2022-08-12 10:45:52.438171+0900 SwiftWebSocketClient[3108:41786] Connection 1: failed to connect 3:-9824, reason -1
2022-08-12 10:45:52.438185+0900 SwiftWebSocketClient[3108:41786] Connection 1: encountered error(3:-9824)
2022-08-12 10:45:52.442545+0900 SwiftWebSocketClient[3108:41786] Task <870977F2-49BF-4B6A-91A4-2A5038C65020>.<1> HTTP load failed, 0/0 bytes (error code: -1200 [3:-9824])
2022-08-12 10:45:52.443561+0900 SwiftWebSocketClient[3108:41792] Task <870977F2-49BF-4B6A-91A4-2A5038C65020>.<1> finished with error [-1200] Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSErrorFailingURLStringKey=wss://localhost:15882/, NSErrorFailingURLKey=wss://localhost:15882/, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalWebSocketTask <870977F2-49BF-4B6A-91A4-2A5038C65020>.<1>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalWebSocketTask <870977F2-49BF-4B6A-91A4-2A5038C65020>.<1>, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made.}