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

Forward to insecure https #75

Closed
AlexDunmow opened this issue Jun 4, 2017 · 1 comment
Closed

Forward to insecure https #75

AlexDunmow opened this issue Jun 4, 2017 · 1 comment
Labels

Comments

@AlexDunmow
Copy link

When I forward to a self signed internal https server (dev environment) I get:

ERRO[0002] Error forwarding to https://localhost:3001, err: x509: certificate signed by unknown authority

I've gone through the docs and I can't see where it's possible to configure a tls.Config with InsecureSkipVerify set to true.

Is this possible?

@mstg
Copy link

mstg commented Dec 26, 2018

I know this is an old issue, but you can solve this problem with something like this (and for reference for others that has this issue):

tlsConfig := &tls.Config{
	InsecureSkipVerify: true,
}

roundTripper := &http.Transport{
	TLSClientConfig: tlsConfig,
}

fwd, err := forward.New(forward.WebsocketTLSClientConfig(tlsConfig), forward.RoundTripper(roundTripper))

@ldez ldez added the question label Nov 4, 2022
@ldez ldez closed this as completed Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants