# TLS protocol error / TLS handshake issue - how to debug?

**URL:** https://forum.syncthing.net/t/tls-protocol-error-tls-handshake-issue-how-to-debug/19177
**Category:** Support
**Created:** [October 26, 2022, 3:46pm UTC](https://forum.syncthing.net/t/tls-protocol-error-tls-handshake-issue-how-to-debug/19177 "2022-10-26T15:46:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hungarianhc](https://forum.syncthing.net/user_avatar/forum.syncthing.net/hungarianhc/32/1353_2.png) [@hungarianhc](https://forum.syncthing.net/u/hungarianhc)
#### Post date: [October 26, 2022, 3:46pm UTC](https://forum.syncthing.net/t/tls-protocol-error-tls-handshake-issue-how-to-debug/19177/1 "2022-10-26T15:46:10Z")

</div>

Hey there,

Logs below. Both device have port forwarding open, and both are on v1.22.0. LMK if there’s any guidance you can give here. Thanks!

```nohighlight
2022-10-25 09:36:12 Established secure connection to 5BMU7PB-MGYDGPC-ACPZWHA-UM1CFTN-WNF7SAU-N2SS3K6-ANYFHUJ-X6E7XA7 at 192.168.1.118:22000-70.187.140.30:22000/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256
2022-10-25 09:36:12 Device 4BMU7PB-MGYDGPC-ADPZWHA-BM2CJTQ-CNG7S6U-P2CS1K3-ANYJVUJ-X7E7MB7 client is "syncthing v1.22.0" named "9 Arrows" at 192.168.1.118:22000-70.187.140.30:22000/tcp-client/TLS1.3-TLS_AES_128_GCM_SHA256
2022-10-25 09:36:14 Completed initial scan of sendonly folder "Media" (bq96k-9htzp)
2022-10-25 09:36:25 Detected 1 NAT service
2022-10-25 09:37:25 Joined relay relay://38.145.211.217:22067
2022-10-25 10:06:13 Sent usage report (version 3)
2022-10-26 02:45:11 Listen (BEP/tcp): TLS handshake: read tcp 192.168.1.118:22000->167.248.133.44:43852: read: connection reset by peer
2022-10-26 02:45:11 Peer at 192.168.1.118:22000-167.248.133.44:34516/tcp-server/TLS1.3-TLS_CHACHA20_POLY1305_SHA256 did not negotiate bep/1.0
2022-10-26 02:45:11 Got peer certificate list of length 0 != 1 from peer at 192.168.1.118:22000-167.248.133.44:34516/tcp-server/TLS1.3-TLS_CHACHA20_POLY1305_SHA256; protocol error
2022-10-26 02:45:11 Peer at 192.168.1.118:22000-167.248.133.44:36818/tcp-server/TLS1.3-TLS_CHACHA20_POLY1305_SHA256 did not negotiate bep/1.0
2022-10-26 02:45:11 Got peer certificate list of length 0 != 1 from peer at 192.168.1.118:22000-167.248.133.44:36818/tcp-server/TLS1.3-TLS_CHACHA20_POLY1305_SHA256; protocol error
2022-10-26 02:45:12 Listen (BEP/tcp): TLS handshake: tls: first record does not look like a TLS handshake

```

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [October 26, 2022, 7:14pm UTC](https://forum.syncthing.net/t/tls-protocol-error-tls-handshake-issue-how-to-debug/19177/2 "2022-10-26T19:14:00Z")

</div>

Other side is something non-Syncthing or some proxy or antivirus is interfering.

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [November 25, 2022, 7:14pm UTC](https://forum.syncthing.net/t/tls-protocol-error-tls-handshake-issue-how-to-debug/19177/3 "2022-11-25T19:14:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
