TimeBye / go-harbor

A Harbor API client enabling Go programs to interact with Harbor in a simple and uniform way
MIT License
138 stars 22 forks source link

x509: certificate signed by unknown authority #5

Open yuanxue1208 opened 4 years ago

yuanxue1208 commented 4 years ago

When I use the harbor.NewClient(nil, "url","username","password") x509: certificate signed by unknown authority

how to solve this problem

Michael754267513 commented 3 years ago

func init() { http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true} }