Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Allow go get from https://*.onion with self-signed certificates #41076
For some reasons I can not use clearnet for some of My golang packages.
export all_proxy="socks5://127.0.0.1:9050" export http_proxy=$all_proxy export https_proxy=$all_proxy go get -u -v 'onionsite.onion/project/package'
results in x509: certificate signed by unknown authority
probably it is ok to allow serf-signed .onion certificates for golang packages hosts
also, trying to use --insecure flag, result in
Looks like something strange happening:
now I've modified above script so:
export all_proxy="socks5://127.0.0.1:9050" export http_proxy=$all_proxy export https_proxy=$all_proxy ONION_DOMAIN='someonion.onion' export GOINSECURE=$ONION_DOMAIN #export GOPRIVATE=$ONION_DOMAIN #export GONOPROXY=$ONION_DOMAIN #export GONOSUMDB=$ONION_DOMAIN "$@"
I've saved it to
as You asked about environment:
GOINSECURE=someonion.onion GONOPROXY=someonion.onion GONOSUMDB=someonion.onion GOPATH=/home/animuspexus/gopath_main:/home/animuspexus/gopath_work GOPRIVATE=someonion.onion GOROOT=/usr/lib/golang all_proxy=socks5://127.0.0.1:9050 http_proxy=socks5://127.0.0.1:9050 https_proxy=socks5://127.0.0.1:9050
This is not the go tool erroring out, the go tool can reach the HTML page, which points it to
Not sure why
thanks, I'll look into this.
~/if/soxy go env
If somebody interested, I've managed this working
git simply requires this in config:
also I used following script to run go programs over tor (note: GOINSECURE and GOPRIVATE not needed if go modules not used):
#!/bin/bash export all_proxy="socks5://127.0.0.1:9050" export http_proxy=$all_proxy export https_proxy=$all_proxy "$@"
also I used ~/.netrc file to provide http username:password