cmd/go: go tool needs to supply tls client cert when server requires mutual auth #39261
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
With a go.mod file:
Then attempt to build: go build main.go
Results in this error:
Using curl shows that a client tls cert is required by private-git-server, and not providing it results in the 400.
Attempted to mod .gitconfig to force use of ssh, but this http check is not governed by the git configuration.
There does not appear to be a way to supply a client tls cert to the go tool.
Using git, it is possible to clone the module to a local dir, then modify the go.mod to do a local replace instead:
This works, but is not desirable.
What did you expect to see?
Expected to have module pulled from the server.
What did you see instead?
unrecognized import path "private-git-server/go-yaml/yaml": reading https://private-git-server/go-yaml/yaml?go-get=1: 400 Bad Request
The text was updated successfully, but these errors were encountered: