mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3588] 按照文档进行TLS设置,连接失败 #2863
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#2863
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 @MMMMMoris on GitHub (Aug 27, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3588
Bug Description
我不是很懂非对称加密的原理或者过程,但我是根据文档操作的。
我用到的ca证书、ca.key等等完全是按文档中的OpenSSL 生成证书示例生成的,包括其中server.com,client.com等示例域名,因为我的客户端是没绑定域名的,我也不知道该用哪个域名,所以直接按照文档上给出的来。我想按照文档的做法开启双向验证,然而无论怎么尝试都不行。已知,在仅仅使用 token,不额外配置TLS的情况下,我的ssh连接是可以使用的。然而一旦加上这些TLS配置就用不了了。frpc、frps 配置和输出在下面。
frpc Version
0.51.3
frps Version
0.51.3
System Architecture
Linux/amd64
Configurations
frpc
frps
Logs
frpc[122614]: 2023/08/27 17:14:22 [I] [root.go:220] start frpc service for config file [/home/debian/programs/frp/frpc.ini]
frpc[122614]: 2023/08/27 17:14:22 [W] [service.go:133] login to server failed: session shutdown
frpc[122614]: 2023/08/27 17:14:22 [I] [root.go:236] frpc service for config file [/home/debian/programs/frp/frpc.ini] stopped
Steps to reproduce
按照以上配置运行程序
Affected area
@cuitz commented on GitHub (Aug 28, 2023):
将生成 frps 证书命令中的 subjectAltName 的 IP 改为你的服务器公网 IP 试试。
@cuitz commented on GitHub (Aug 28, 2023):
另外如果 frps.ini 的 common 中 tls_trusted_ca_file 内容是有效的话,那么默认就会开启
tls_only = true@github-actions[bot] commented on GitHub (Sep 28, 2023):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.