[GH-ISSUE #2799] autocert support #2238

Open
opened 2026-05-05 13:26:21 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @tcurdt on GitHub (Feb 14, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2799

Describe the feature request

A public facing https port needs a cert. It would be nice if the cert could automatically be obtained from letsencrypt.

Describe alternatives you've considered

I guess one could use caddy as another proxy in front - but that is less than ideal. It would be better to integrate

https://go-acme.github.io/lego/usage/library/

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @tcurdt on GitHub (Feb 14, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2799 ### Describe the feature request A public facing https port needs a cert. It would be nice if the cert could automatically be obtained from letsencrypt. ### Describe alternatives you've considered I guess one could use caddy as another proxy in front - but that is less than ideal. It would be better to integrate https://go-acme.github.io/lego/usage/library/ ### Affected area - [X] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [X] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [X] Server Plugin - [X] Extensions - [ ] Others
gitea-mirror added the
todo
label 2026-05-05 13:26:21 -06:00
Author
Owner

@fatedier commented on GitHub (Feb 15, 2022):

Can you describe more about your configures?

<!-- gh-comment-id:1039800313 --> @fatedier commented on GitHub (Feb 15, 2022): Can you describe more about your configures?
Author
Owner

@tcurdt commented on GitHub (Feb 15, 2022):

Let's say I have a http service on the LAN and I want to expose that via https on the a public machine.

I guess one could use frp to create a tunnel and then use e.g. caddy as a reverse proxy to that. Or maybe use cert-manager in DNS mode to obtain letsencrypt certs. Both not ideal.

It seems frp already supports TLS - so why not support getting the cert via acme directly?

<!-- gh-comment-id:1040128997 --> @tcurdt commented on GitHub (Feb 15, 2022): Let's say I have a http service on the LAN and I want to expose that via https on the a public machine. I guess one could use `frp` to create a tunnel and then use e.g. `caddy` as a reverse proxy to that. Or maybe use `cert-manager` in DNS mode to obtain letsencrypt certs. Both not ideal. It seems `frp` [already supports TLS](https://github.com/fatedier/frp#enable-https-for-local-https-service) - so why not support getting the cert via acme directly?
Author
Owner

@fatedier commented on GitHub (Feb 15, 2022):

That makes sense.

I plan to support it in frp v2. Usage of HTTPS will be refactored future.

If it's easy to implement, i will add this in current release.

<!-- gh-comment-id:1040228342 --> @fatedier commented on GitHub (Feb 15, 2022): That makes sense. I plan to support it in frp v2. Usage of HTTPS will be refactored future. If it's easy to implement, i will add this in current release.
Author
Owner

@almereyda commented on GitHub (Sep 21, 2022):

In case one wanted to adopt implementation strategies from other approaches, there is boringproxy.io, which reuses caddyserver/certmagic for the task.

<!-- gh-comment-id:1253191154 --> @almereyda commented on GitHub (Sep 21, 2022): In case one wanted to adopt implementation strategies from other approaches, there is [boringproxy.io](https://boringproxy.io/), which reuses [caddyserver/certmagic](https://github.com/caddyserver/certmagic) for the task.
Author
Owner

@dest1n1s commented on GitHub (Aug 11, 2024):

Any progress on this? It'd be nice if frp supports automatic certificate renewal since it's cumbersome to have the certificates renewed on the relay server and then move them to the host.

<!-- gh-comment-id:2282803267 --> @dest1n1s commented on GitHub (Aug 11, 2024): Any progress on this? It'd be nice if `frp` supports automatic certificate renewal since it's cumbersome to have the certificates renewed on the relay server and then move them to the host.
Author
Owner

@trajche commented on GitHub (Dec 25, 2025):

@fatedier I took a stab at this over here: https://github.com/trajche/frp

It works but frpc proxies must be set to http. It does not use the ACME wildcard (DNS verification), only web server one.

I added "feature gates" as a concept to server too to enable this so it doesn't cause issues with the rest.

<!-- gh-comment-id:3691666859 --> @trajche commented on GitHub (Dec 25, 2025): @fatedier I took a stab at this over here: https://github.com/trajche/frp It works but frpc proxies must be set to http. It does not use the ACME wildcard (DNS verification), only web server one. I added "feature gates" as a concept to server too to enable this so it doesn't cause issues with the rest.
Author
Owner

@bbplatforma commented on GitHub (Mar 24, 2026):

Hi. Can this together be addressed, frps then will be near perfect :)

https://github.com/fatedier/frp/issues/2946

<!-- gh-comment-id:4115759908 --> @bbplatforma commented on GitHub (Mar 24, 2026): Hi. Can this together be addressed, frps then will be near perfect :) https://github.com/fatedier/frp/issues/2946
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#2238
No description provided.