SSL Passthrough
agforte
nginx-forum at forum.nginx.org
Fri Feb 17 22:23:24 UTC 2017
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!
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272487,272493#msg-272493
More information about the nginx
mailing list