Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

How to resolve problem of godep error "x509 : certificate signed by unknow authority" #292

Open
jijun2 opened this issue Oct 13, 2015 · 2 comments
Assignees

Comments

@jijun2
Copy link

jijun2 commented Oct 13, 2015

When I exec godep restore , it print "x509 : certificate signed by unknow authority" ,I use http_proxy access to internet , the proxy maybe can't support x509/ssl certificate well ,

How to resolve this problem ? Is any way can stop certification ?

@freeformz
Copy link

What happens if you go get each of your dependencies? Which one(s) print the same error?

@markturansky
Copy link

markturansky commented Nov 28, 2018

I have this same problem on OSX when attempting to go get a dependency from a private git repo.

Our self-signed cert is stored in my system keychain and set to "Always Trust". I can curl successfully and it uses the cert as expected.

But when dep ensure is run, I get:

The following errors occurred while deducing packages:
  * "redacted/service/api-client/pkg/client": unable to deduce repository and source type for "redacted/service/api-client/pkg/client": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://redacted/service/api-client/pkg/client?go-get=1": Get https://redacted:443/service/api-client/pkg/client?go-get=1: x509: certificate signed by unknown authority

I even have this particular project checked out from git and built in my GOPATH (though I understand dep doesn't use gopath for this).

The cert works in every other context, just not when running dep ensure. Any ideas why this might be?

$ dep version
dep:
 version     : v0.5.0
 build date  : 2018-07-26
 git hash    : 224a564
 go version  : go1.10.3
 go compiler : gc
 platform    : darwin/amd64
 features    : ImportDuringSolve=false

$ go version
go version go1.11 darwin/amd64

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants