[GH-ISSUE #4950] [Feature Request] Use public/private keys instead of symmetric tokens for authentication #3902

Closed
opened 2026-05-05 14:29:24 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @ImranR98 on GitHub (Aug 23, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4950

Describe the feature request

Currently, the frps and frpc both need to use the same token to talk to each other. This increases the risk of MITM attacks. It would be nice if each side could have its own public/private key pair for mutual auth.

Describe alternatives you've considered

No alternatives.

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @ImranR98 on GitHub (Aug 23, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4950 ### Describe the feature request Currently, the `frps` and `frpc` both need to use the same token to talk to each other. This increases the risk of MITM attacks. It would be nice if each side could have its own public/private key pair for mutual auth. ### Describe alternatives you've considered No alternatives. ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [x] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [x] Client Plugin - [x] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Aug 25, 2025):

https://github.com/fatedier/frp?tab=readme-ov-file#tls
You can take a look at the document here.

<!-- gh-comment-id:3218625832 --> @fatedier commented on GitHub (Aug 25, 2025): https://github.com/fatedier/frp?tab=readme-ov-file#tls You can take a look at the document here.
Author
Owner

@ImranR98 commented on GitHub (Aug 25, 2025):

Thanks, I didn't realize this was already possible (it wasn't the last time I checked but that was a long time ago). Should have checked more thoroughly again, sorry.

<!-- gh-comment-id:3218631570 --> @ImranR98 commented on GitHub (Aug 25, 2025): Thanks, I didn't realize this was already possible (it wasn't the last time I checked but that was a long time ago). Should have checked more thoroughly again, sorry.
Author
Owner

@ImranR98 commented on GitHub (Sep 14, 2025):

Is there a way to use this with https://github.com/gofrp/fp-multiuser? Couldn't find any docs for that.

<!-- gh-comment-id:3289758130 --> @ImranR98 commented on GitHub (Sep 14, 2025): Is there a way to use this with https://github.com/gofrp/fp-multiuser? Couldn't find any docs for that.
Author
Owner

@fatedier commented on GitHub (Sep 15, 2025):

These two are unrelated; just configure each one according to its respective documentation.

<!-- gh-comment-id:3290358576 --> @fatedier commented on GitHub (Sep 15, 2025): These two are unrelated; just configure each one according to its respective documentation.
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#3902
No description provided.