mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3305] http: TLS handshake error from xxxxx: EOF #2646
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2646
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @1143461596 on GitHub (Feb 13, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3305
Bug Description
使用https类型的配置,添加了阿里云nginx域名证书,启用了https2http插件,frps与frpc的连接也正常,可是一旦访问系统,frpc端日志就提示报错http: TLS handshake error from xxxxxx: EOF
更换过其他域名证书,更换过fprs和fprc的版本,也更换过客户端的操作系统,均是相同情况。
开启了trace模式的日志输出,配置如下。请问各位大佬有遇到类似情况吗?该如何解决?
frpc Version
0.46.1
frps Version
0.46.1
System Architecture
linux/amd64
Configurations
[https2http]
type = https
local_ip = 127.0.0.1
local_port = 8000
custom_domains = xxx.xxxx.com
plugin = https2http
plugin_local_addr = 127.0.0.1:8000
plugin_host_header_rewrite = 127.0.0.1
plugin_header_X-From-Where = frp
plugin_crt_path = ./server.pem
plugin_key_path = ./server.key
Logs
2023/02/13 10:43:49 [D] [control.go:286] [40261acec1f32e81] send heartbeat to server
2023/02/13 10:43:49 [D] [control.go:317] [40261acec1f32e81] receive heartbeat from server
2023/02/13 10:43:57 [D] [proxy_wrapper.go:231] [40261acec1f32e81] [https2http] start a new work connection, localAddr: 10.1.40.3:59570 remoteAddr: xxxxx
2023/02/13 10:43:57 [D] [proxy_wrapper.go:231] [40261acec1f32e81] [https2http] start a new work connection, localAddr: 10.1.40.3:59570 remoteAddr: xxxxxx
2023/02/13 10:43:57 [T] [proxy.go:742] [40261acec1f32e81] [https2http] handle tcp work connection, use_encryption: false, use_compression: false
2023/02/13 10:43:57 [T] [proxy.go:742] [40261acec1f32e81] [https2http] handle tcp work connection, use_encryption: false, use_compression: false
2023/02/13 10:43:57 [D] [proxy.go:791] [40261acec1f32e81] [https2http] handle by plugin: https2http
2023/02/13 10:43:57 [D] [proxy.go:791] [40261acec1f32e81] [https2http] handle by plugin: https2http
2023/02/13 10:43:57 [D] [proxy.go:793] [40261acec1f32e81] [https2http] handle by plugin finished
2023/02/13 10:43:57 [D] [proxy.go:793] [40261acec1f32e81] [https2http] handle by plugin finished
2023/02/13 10:43:57 http: TLS handshake error from xxxxxxx: EOF
2023/02/13 10:43:57 http: TLS handshake error from xxxxxxx: EOF
Steps to reproduce
...
Affected area
@Becods commented on GitHub (Feb 13, 2023):
确保在
127.0.0.1:8000上运行的服务是 http 而不是 https@1143461596 commented on GitHub (Feb 13, 2023):
127.0.0.1:8000 确定是http,而且https的我也试过,都不行。 真的怀疑是frpc根本没读到我的证书,但是证书文件的路径和权限都是没问题的。
@1143461596 commented on GitHub (Feb 13, 2023):
找到原因了,因为域名未完成备案导致,刚刚正好域名通过了管局备案,问题解决了。谢谢大家~
@yuanbin-dev commented on GitHub (Feb 15, 2023):
@yikexiaoyao commented on GitHub (Mar 6, 2023):
我也遇到这种问题,未解决
@github-actions[bot] commented on GitHub (Apr 6, 2023):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
@steveoon commented on GitHub (Sep 14, 2023):
相同的问题,frpc用https2https插件把本地http转换为https,域名和云服务器都是海外的,不存在备案问题,但是提示提示:
http: TLS handshake error from xxxx:xxxx: EOF
@ChouYih commented on GitHub (Feb 28, 2024):
解决了吗?
@actonknowledge commented on GitHub (Nov 20, 2024):
最新版存在同样的问题