Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for mitm ca chain #532

Closed
wants to merge 1 commit into from
Closed

Conversation

RomanManz
Copy link

This allows to return the full ca chain instead of returning only the leaf certificate.
The change is backward compatible.
Was there a security concern that I am not aware of as the reason for the initial implementation?

Comment on lines 455 to +460
func TLSConfigFromCA(ca *tls.Certificate) func(host string, ctx *ProxyCtx) (*tls.Config, error) {
ca.Certificate = [][]byte{ca.Certificate[0]}
return TLSConfigFromCANative(ca)
}

func TLSConfigFromCANative(ca *tls.Certificate) func(host string, ctx *ProxyCtx) (*tls.Config, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we have just a single TLSConfigFromCA function that returns the whole chain? This shouldn't be a breaking change

@ErikPelli
Copy link
Collaborator

Thanks!
I integrated this PR into #574 and added you as a coauthor.

@ErikPelli ErikPelli closed this Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants