mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2489] tls-only is always true if tls_trusted_ca_file is set #1977
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#1977
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 @trananhtuan on GitHub (Jul 21, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2489
[REQUIRED] hat version of frp are you using
Version: 0.37.0
[REQUIRED] What operating system and processor architecture are you using
OS: Windows, Linux
CPU architecture: x86
[REQUIRED] description of errors
If
tls_trusted_ca_fileis set, server will reject non-TLS connections despite bothtls_onlyandtls_enableare set tofalse.I want TLS to be optional. When setting
tls_enable = trueandtls_only = falseon frps.ini, client should be able to connect withtls_enableis eithertrueorfalse.confile
server:
client:
log file
server:
client:
Steps to reproduce the issue
tls_trusted_ca_filevalue. Settls_onlyandtls_enabletofalse.tls_enable: false.Supplementary information
Can you guess what caused this issue
Checklist:
@fatedier commented on GitHub (Jul 21, 2021):
It's designed to be used in this way.
We add
tls_onlyfor compatible reason and it maybe removed in future release. If you enable TLS,it will reject all nonTLS connections.@trananhtuan commented on GitHub (Jul 21, 2021):
But why? TLS is cool but certificate management is a burden, and performance might be an issue. I would rather to enable TLS only for plain http traffic and leave everything else unencrypted. This way I can use nginx with certificates to further protect traffic serving from vhost.
@github-actions[bot] commented on GitHub (Aug 21, 2021):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.