mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #4538] TLS setup #3586
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#3586
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 @PeterBasista on GitHub (Nov 15, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4538
Bug Description
Hi everyone,
I’m seeking assistance with generating certificates for my
frpsandfrpcsetup. Although I’ve followed the documentation closely, I’m running into issues.Here’s a brief overview of my setup:
Currently, without TLS enabled, I can successfully connect to my private home server using subdomains like anything.custom.domain.com or new.domain.com
However, problems arise when I try to add certificates to the server and client. I’ve been following the documentation and here’s the code I’ve been using to generate the certificates (redacted for clarity):
my-openssl.cnf
certs generation
I need to ensure that all connections for *.custom.domain.com or new.domain.com will be routed to the home server.
Best regards,
Peter
frpc Version
0.61.0
frps Version
0.61.0
System Architecture
linux/amd64
Configurations
frps.toml
frpc.toml
Logs
Steps to reproduce
Affected area
@fatedier commented on GitHub (Nov 15, 2024):
I asked ChatGPT about the possible reasons:
@PeterBasista commented on GitHub (Nov 15, 2024):
Thanks for you reply (and also thank to ChatGPT).
I applied all the changes which has been generated by ChatGPT.
transport.tls.serverNameAfter restart I have still same problems:
I have no idea what I am doing wrong, really, I also tried to ask copilot as I do not have chatGPT but nothing really helpful.
frps.toml
frpc.toml
@fatedier commented on GitHub (Nov 15, 2024):
Perhaps it's an issue here; in this case, bindPort cannot be the same as vhostHTTPSPort.
@PeterBasista commented on GitHub (Nov 15, 2024):
Okay, you were right. I needed also adjust apache2 conf for correct ports but now everything is working as expected! Thank you very much for you help. I really appreciate it that you helped me to better understand configuration part of this project. Thank you for helping me secure my FRP instances.
What I needed to do:
and then change in the apache2 available sites configuration to: