debauchee / barrier

Open-source KVM software
Other
27.62k stars 1.52k forks source link

ERROR: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol #1426

Open kentsin opened 3 years ago

kentsin commented 3 years ago

What happened?

https://github.com/symless/synergy-core/issues/4642

client (win10 2.4.0 and previous version) can connect barrier (GUI) but not barriers (headless) 2.3.3

I found the above issue 4642 while google.

It works fine with barrier (GUI) but not barrier-headless. When trying with barrers (headless) the client log says

[2021-11-13T11:51:03] WARNING: failed to connect to server: Connection was refused [2021-11-13T11:51:04] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800 [2021-11-13T11:51:04] INFO: OpenSSL 1.0.2l 25 May 2017 [2021-11-13T11:51:05] ERROR: ssl error occurred (generic failure) [2021-11-13T11:51:05] ERROR: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol [2021-11-13T11:51:05] ERROR: failed to connect secure socket

So I have to use the barrier (GUI)

Version

v2.3.3

Git commit hash (if applicable)

No response

If applicable, where did you install Barrier from?

Manjora Pamac.

What OSes are you seeing the problem on? (Check all that apply)

Linux

What OS versions are you using?

Operating System: Manjaro Linux KDE Plasma Version: 5.22.5 KDE Frameworks Version: 5.87.0 Qt Version: 5.15.2 Kernel Version: 5.14.10-1-MANJARO (64-bit) Graphics Platform: X11 Processors: 4 × Intel® Core™ i5-4200U CPU @ 1.60GHz Memory: 3.7 GiB of RAM Graphics Processor: Mesa DRI Intel® HD Graphics 4400

Relevant log output

[2021-11-13T11:49:10] WARNING: failed to connect to server: Timed out
[2021-11-13T11:49:11] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:49:11] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:49:11] ERROR: ssl error occurred (generic failure)
[2021-11-13T11:49:11] ERROR: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
[2021-11-13T11:49:11] ERROR: failed to connect secure socket
[2021-11-13T11:49:26] WARNING: failed to connect to server: Timed out
[2021-11-13T11:49:27] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:49:27] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:49:27] ERROR: ssl error occurred (generic failure)
[2021-11-13T11:49:27] ERROR: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
[2021-11-13T11:49:27] ERROR: failed to connect secure socket
[2021-11-13T11:49:42] WARNING: failed to connect to server: Timed out
[2021-11-13T11:49:43] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:49:43] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:49:45] WARNING: failed to connect to server: Connection was refused
[2021-11-13T11:49:46] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:49:46] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:49:48] WARNING: failed to connect to server: Connection was refused
[2021-11-13T11:49:49] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:49:49] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:49:51] NOTE: peer fingerprint (SHA1): A2:55:8D:CE:7C:7A:0D:8B:41:2C:0E:DE:F9:E3:61:52:21:AC:31:00 (SHA256): 1A:C6:A4:A5:94:B7:A6:27:82:CC:A2:CC:FF:7C:D9:2D:32:3F:52:FD:03:64:6D:E9:EF:30:48:A8:5B:07:CB:DD
[2021-11-13T11:49:51] NOTE: fingerprint_db_path: C:\Users\surface\AppData\Local\Barrier\SSL\Fingerprints\TrustedServers.txt
[2021-11-13T11:49:51] NOTE: Read 2 fingerprints from: C:\Users\surface\AppData\Local\Barrier\SSL\Fingerprints\TrustedServers.txt
[2021-11-13T11:49:51] NOTE: Fingerprint matches trusted fingerprint
[2021-11-13T11:49:51] INFO: connected to secure socket
[2021-11-13T11:49:51] INFO: peer ssl certificate info: /CN=Barrier
[2021-11-13T11:49:51] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH     Au=RSA  Enc=AESGCM(256) Mac=AEAD
connected to server
[2021-11-13T11:50:13] NOTE: disconnected from server
[2021-11-13T11:50:14] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:50:14] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:50:16] WARNING: failed to connect to server: Connection was refused
[2021-11-13T11:50:17] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:50:17] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:50:19] WARNING: failed to connect to server: Connection was refused
[2021-11-13T11:50:21] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:50:21] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:50:23] WARNING: failed to connect to server: Connection was refused
[2021-11-13T11:50:24] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:50:24] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:50:26] WARNING: failed to connect to server: Connection was refused
[2021-11-13T11:50:27] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:50:27] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:50:29] WARNING: failed to connect to server: Connection was refused
[2021-11-13T11:50:30] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:50:30] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:50:32] WARNING: failed to connect to server: Connection was refused
[2021-11-13T11:50:33] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:50:33] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:50:35] WARNING: failed to connect to server: Connection was refused
[2021-11-13T11:50:36] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:50:36] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:50:38] WARNING: failed to connect to server: Connection was refused
[2021-11-13T11:50:39] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:50:39] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:50:41] WARNING: failed to connect to server: Connection was refused
[2021-11-13T11:50:42] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:50:42] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:50:44] WARNING: failed to connect to server: Connection was refused
[2021-11-13T11:50:45] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:50:45] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:50:47] WARNING: failed to connect to server: Connection was refused
[2021-11-13T11:50:48] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:50:48] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:50:50] WARNING: failed to connect to server: Connection was refused
[2021-11-13T11:50:51] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800
[2021-11-13T11:50:51] INFO: OpenSSL 1.0.2l  25 May 2017
[2021-11-13T11:50:53] WARNING: failed to connect to server: Connection was refused
[2021-11-13T11:50:54] NOTE: connecting to '192.168.31.55': 192.168.31.55:24800

Any other information

Find synergy have same issue

https://github.com/symless/synergy-core/issues/4642

spoelstraethan commented 2 years ago

Newer release appears to have forced "Require SSL" setting on which causes issues if you haven't configured all the proper SSL files.