mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #4634] SSL证书配置frp双向认证失败,单向认证中:frp客户端使用client.crt+client.key认证服务端的ca.crt成功,但是frp客户端使用ca.crt认证服务端的server.crt+server.key失败 #3660
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#3660
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 @Songs-YZS on GitHub (Jan 12, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4634
Bug Description
SSL证书配置frp双向认证失败,单向认证中:frp客户端使用client.crt+client.key认证服务端的ca.crt成功,但是frp客户端使用ca.crt认证服务端的server.crt+server.key失败。





成功图:
失败图:
但是我在openssl上验证过ca.crt认证server.crt+server.key是成功的:
验证证书没问题:
服务端启用server.crt+server.key开启8080端口:
客户端启用ca.crt成功连接8080端口:
frpc Version
0.61.1
frps Version
0.61.1
System Architecture
WInodw+Linux平台都试了
Configurations
~
Logs
No response
Steps to reproduce
...
Affected area
@github-actions[bot] commented on GitHub (Jan 27, 2025):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
@Vekixx commented on GitHub (May 22, 2025):
2.证书位置frps/c.toml同目录的ssl文件夹内
your_project_folder/
├── frps/c.toml
└── ssl/
└── .crt/.key
3.docker run/docker-compose.yml修改
增加
-v {your_frp_folder}/ssl:/etc/frp/ssl或者volumes:下增加- ./ssl:/etc/frp/ssl4.frps/c.toml内添加