mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[PR #4457] [CLOSED] feat(plugin): add rootca and tls verify for client http plugins #4981
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#4981
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?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/4457
Author: @adamwallred
Created: 9/25/2024
Status: ❌ Closed
Base:
dev← Head:rootca📝 Commits (1)
e2b34fffeat(plugin): add rootca and tls verify for client http plugins📊 Changes
3 files changed (+40 additions, -4 deletions)
View changed files
📝
pkg/config/v1/plugin.go(+2 -0)📝
pkg/plugin/client/http2https.go(+19 -2)📝
pkg/plugin/client/https2https.go(+19 -2)📄 Description
WHY
It would be nice to support a custom CA cert and perform TLS verification of the connections between the
httputil.ReverseProxyand the proxied service in the client*2httpsplugins.This PR adds support for loading a rootCA and verifying TLS connections for the client http plugins.
I manually tested this by adding an incorrect root CA cert and attempting to make use of the proxy:
and verify failed as expected.
After adding the proper root CA certificate, the verify and proxy worked as expected.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.