GoLand 2019.2 can't load packages due to: certificate signed by unknown authority

Hi,

I upgraded to GoLand 2019.2 today and now I'm getting a bunch of errors and it's refusing to recognize my packages because it's getting several "certificate signed by unknown authority" errors. It was working fine with 2019.1.3. How do I fix this?

Here are the errors:

go: cloud.google.com/go@v0.34.0: unrecognized import path "cloud.google.com/go" (https fetch: Get https://cloud.google.com/go?go-get=1: x509: certificate signed by unknown authority)
go: cloud.google.com/go@v0.26.0: unrecognized import path "cloud.google.com/go" (https fetch: Get https://cloud.google.com/go?go-get=1: x509: certificate signed by unknown authority)
go: cloud.google.com/go@v0.38.0: unrecognized import path "cloud.google.com/go" (https fetch: Get https://cloud.google.com/go?go-get=1: x509: certificate signed by unknown authority)
go: go4.org@v0.0.0-20190218023631-ce4c26f7be8e: unrecognized import path "go4.org" (https fetch: Get https://go4.org?go-get=1: x509: certificate signed by unknown authority)
go: go4.org@v0.0.0-20180809161055-417644f6feb5: unrecognized import path "go4.org" (https fetch: Get https://go4.org?go-get=1: x509: certificate signed by unknown authority)
go: grpc.go4.org@v0.0.0-20170609214715-11d0a25b4919: unrecognized import path "grpc.go4.org" (https fetch: Get https://grpc.go4.org?go-get=1: x509: certificate signed by unknown authority)
go: error loading module requirements
 
Thanks,
 
Rob
评论操作 固定链接

I am facing a similar issue. When I set GOPRIVATE = <my organization's internal URL>, I get "x509: certificate signed by unknown authority." Can someone please help?

0
评论操作 固定链接

Does the command IDE runs also fails if you run it manually in terminal?

0
评论操作 固定链接

Yes, I get the same result.

0
评论操作 固定链接

Then the problem is not in the IDE. If adding your corporate certificate to the OS (e.g. to KeyChain in MacOS) doesn't help, I'd suggest filing issue in the golang issue tracker on github.

 

0

请先登录再写评论。