RANCHER INSTALLATION - Received HTTP code 407 from proxy after CONNECT

I’m trying to install rancher behind a proxy with authentication and SSL offloading and when I ran the command to deploy rancher on a RKE cluster I notice this errors in some of rancher containers:

helm command to install rancher:
./helm install rancher-latest/rancher
–name rancher
–namespace cattle-system
–set hostname=rancher-dev.home.net
–set ingress.tls.source=secret
–set proxy=“proxystring”
–set noProxy=“127.0.0.0/8,10.0.0.0/8,172.17.0.0/16,192.168.0.0/16”
–set tls=external
–set privateCA=true

Error found in some rancher logs:
2019/06/19 16:02:42 [ERROR] CatalogController system-library [catalog] failed with : Clone failed: Cloning into ‘management-state/catalog-cache/2284e9d6c1e82c5a56a5cb7c1d5c0144835734b1b66da6f75122d99c7989618f’…
fatal: unable to access ‘https://git.rancher.io/system-charts/’: Received HTTP code 407 from proxy after CONNECT
: exit status 128

When I enter in the container I notice the variables are set:

root@rancher-7794977df8-wwhzn:/var/lib/rancher# env | grep _PROXY
HTTP_PROXY=proxystring
NO_PROXY=127.0.0.0/8,10.0.0.0/8,172.17.0.0/16,192.168.0.0/16
HTTPS_PROXY=proxystring

But git is not working:

root@rancher-7794977df8-wwhzn:~# git ls-remote https://git.rancher.io/charts/
fatal: unable to access ‘https://git.rancher.io/charts/’: Received HTTP code 407 from proxy after CONNECT

Eventually the rancher console never get started and the installation keep stuck.