Golang x509: certificate signed by unknown authority 问题
方法一,使用匹配的证书方法: rootCA := `*.pem 文件的内容` roots := x509.NewCertPool() ok := roots.AppendCertsFromPEM([]byte(rootCA)) if !ok { panic("failed to parse root certificate") } client = &http.Client{ Transp…