[GH-ISSUE #3419] CheckAndEnableTLSServerConnWithTimeout-- non-TLS connection received on a TlsOnly server #2734

Closed
opened 2026-05-05 13:45:44 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @woshibba on GitHub (Apr 21, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3419

Bug Description

服务段报错[service.go:401] CheckAndEnableTLSServerConnWithTimeout error: non-TLS connection received on a TlsOnly server
我想弄一个tls加密的frp
服务端开启了tls_only= true
客户端开启了 tls_enable = true
客户端报错 [service.go:133] login to server failed: EOF

frpc Version

frpc 0.46.0

frps Version

frps 0.43.0

System Architecture

linux/amd64

Configurations

frpc.ini
server_addr =
server_port =
tls_enable = true
tls_cert_file = client.crt
tls_key_file = client.key
tls_trusted_ca_file = ca.crt

[ssh]
type = tcp
plugin = socks5
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
================================================
frps.ini
[common]
bind_port =
tls_only= true
tls_cert_file = cert/server.crt
tls_key_file = cert/server.key
tls_trusted_ca_file = cert/ca.crt

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @woshibba on GitHub (Apr 21, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3419 ### Bug Description 服务段报错[service.go:401] CheckAndEnableTLSServerConnWithTimeout error: non-TLS connection received on a TlsOnly server 我想弄一个tls加密的frp 服务端开启了tls_only= true 客户端开启了 tls_enable = true 客户端报错 [service.go:133] login to server failed: EOF ### frpc Version frpc 0.46.0 ### frps Version frps 0.43.0 ### System Architecture linux/amd64 ### Configurations frpc.ini server_addr = server_port = tls_enable = true tls_cert_file = client.crt tls_key_file = client.key tls_trusted_ca_file = ca.crt [ssh] type = tcp plugin = socks5 local_ip = 127.0.0.1 local_port = 22 remote_port = 6000 **================================================** frps.ini [common] bind_port = tls_only= true tls_cert_file = cert/server.crt tls_key_file = cert/server.key tls_trusted_ca_file = cert/ca.crt ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [X] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:45:44 -06:00
Author
Owner

@woshibba commented on GitHub (Apr 21, 2023):

服务段报错应该是服务端报错,是我 写错了

<!-- gh-comment-id:1517453945 --> @woshibba commented on GitHub (Apr 21, 2023): 服务段报错应该是服务端报错,是我 写错了
Author
Owner

@superzjg commented on GitHub (Apr 24, 2023):

参考教程:
https://gofrp.org/docs/features/common/network/network-tls/

<!-- gh-comment-id:1519505298 --> @superzjg commented on GitHub (Apr 24, 2023): 参考教程: https://gofrp.org/docs/features/common/network/network-tls/
Author
Owner

@github-actions[bot] commented on GitHub (May 25, 2023):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:1562095577 --> @github-actions[bot] commented on GitHub (May 25, 2023): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2734
No description provided.