Welcome! Log In Create A New Profile

Advanced

Re: SSL Passthrough

February 17, 2017 05:23PM
up vote
0
down vote
accept
I have found the problem. It was actually a code issue. I am using Golang. The problem was that I was configuring the Proxy as:

*httpsCl = http.Client{
Transport: &http.Transport{
Proxy: http.ProxyURL(proxyUrl),
TLSClientConfig: tlsConfig
},
}
and in doing so the private server was expecting to talk to the Proxy which does not work if we are using SSL passthrough. Instead I had to configure the proxy as:

*httpsCl = http.Client{
Transport: &http.Transport{
Dial: func(network, addr string) (net.Conn, error){
return net.Dial("tcp", proxyUrl.Host)
},
TLSClientConfig: tlsConfig
},
}
Thanks all!
Subject Author Posted

SSL Passthrough

agforte February 17, 2017 02:52PM

Re: SSL Passthrough

Francis Daly February 17, 2017 04:52PM

Re: SSL Passthrough

agforte February 17, 2017 05:37PM

Re: SSL Passthrough

agforte February 17, 2017 05:23PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 109
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready