[GH-ISSUE #2612] 是否可以支持端对端加密 #2085

Closed
opened 2026-05-05 13:20:23 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @lsusu on GitHub (Oct 10, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2612

Describe the feature request

stcp支持端到端认证连接,但数据针对服务器依旧是明文
是否能在stcp基础上增加端对端加密,服务器仅传输密文。

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @lsusu on GitHub (Oct 10, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2612 ### Describe the feature request stcp支持端到端认证连接,但数据针对服务器依旧是明文 是否能在stcp基础上增加端对端加密,服务器仅传输密文。 ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [X] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:20:23 -06:00
Author
Owner

@fatedier commented on GitHub (Oct 11, 2021):

启用 TLS 即可。

<!-- gh-comment-id:939642211 --> @fatedier commented on GitHub (Oct 11, 2021): 启用 TLS 即可。
Author
Owner

@qq77522980 commented on GitHub (Oct 11, 2021):

启用 TLS 即可。

启用TLS,只是与服务器之间传输数据被加密,但是服务器接收到后解密,对服务器来说仍然看得到明文;他的意思应该是即使是服务器,也不能看到传输的数据,即发起端和内网端之间全程加密。

<!-- gh-comment-id:939785262 --> @qq77522980 commented on GitHub (Oct 11, 2021): > 启用 TLS 即可。 启用TLS,只是与服务器之间传输数据被加密,但是服务器接收到后解密,对服务器来说仍然看得到明文;他的意思应该是即使是服务器,也不能看到传输的数据,即发起端和内网端之间全程加密。
Author
Owner

@blizard863 commented on GitHub (Oct 12, 2021):

启用 TLS 即可。

启用TLS,只是与服务器之间传输数据被加密,但是服务器接收到后解密,对服务器来说仍然看得到明文;他的意思应该是即使是服务器,也不能看到传输的数据,即发起端和内网端之间全程加密。

可以考虑加个目前有的 sk 配置。
服务端并不关心具体数据,只是透明传输。

<!-- gh-comment-id:940706354 --> @blizard863 commented on GitHub (Oct 12, 2021): > > 启用 TLS 即可。 > > 启用TLS,只是与服务器之间传输数据被加密,但是服务器接收到后解密,对服务器来说仍然看得到明文;他的意思应该是即使是服务器,也不能看到传输的数据,即发起端和内网端之间全程加密。 可以考虑加个目前有的 sk 配置。 服务端并不关心具体数据,只是透明传输。
Author
Owner

@lsusu commented on GitHub (Oct 15, 2021):

sk应该只是客服端相互认证用的,但数据对服务端依旧是明文。
针对数据加密应该是客服端到客服端加密,这样服务器拿到的应该也是密文。
类似sk,双方提前添加一个密钥,密钥本地保存,客服端数据发送时加密,客服端接收时解密,这样服务器看到的都是密文。

<!-- gh-comment-id:943917830 --> @lsusu commented on GitHub (Oct 15, 2021): sk应该只是客服端相互认证用的,但数据对服务端依旧是明文。 针对数据加密应该是客服端到客服端加密,这样服务器拿到的应该也是密文。 类似sk,双方提前添加一个密钥,密钥本地保存,客服端数据发送时加密,客服端接收时解密,这样服务器看到的都是密文。
Author
Owner

@blizard863 commented on GitHub (Oct 15, 2021):

sk应该只是客服端相互认证用的,但数据对服务端依旧是明文。 针对数据加密应该是客服端到客服端加密,这样服务器拿到的应该也是密文。 类似sk,双方提前添加一个密钥,密钥本地保存,客服端数据发送时加密,客服端接收时解密,这样服务器看到的都是密文。

可以看下文档里TLS 相关的。

<!-- gh-comment-id:944368513 --> @blizard863 commented on GitHub (Oct 15, 2021): > sk应该只是客服端相互认证用的,但数据对服务端依旧是明文。 针对数据加密应该是客服端到客服端加密,这样服务器拿到的应该也是密文。 类似sk,双方提前添加一个密钥,密钥本地保存,客服端数据发送时加密,客服端接收时解密,这样服务器看到的都是密文。 可以看下文档里TLS 相关的。
Author
Owner

@github-actions[bot] commented on GitHub (Nov 15, 2021):

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

<!-- gh-comment-id:968403652 --> @github-actions[bot] commented on GitHub (Nov 15, 2021): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Author
Owner

@shui-dun commented on GitHub (Mar 21, 2025):

请问是否开启useEncryption就可以实现端对端加密?

<!-- gh-comment-id:2743210523 --> @shui-dun commented on GitHub (Mar 21, 2025): 请问是否开启useEncryption就可以实现端对端加密?
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#2085
No description provided.