"Accept/Ignore all server SSL certificates") flag.Parse() // Get the SystemCertPool, continue with an empty pool on error rootCAs, _ := x509.SystemCertPool() if rootCAs == nil { ... log.Fatalf("Failed to append %q to RootCAs: %v", certs, err) } if ok := rootCAs.AppendCertsFromPEM(certs); !ok { log.Println("No certs appended, using system certs only") }...
"Accept/Ignore all server SSL certificates")flag.Parse()// Get the SystemCertPool, continue with an empty pool on errorrootCAs, _ := x509.SystemCertPool()if rootCAs == nil {rootCAs = x509... log.Fatalf("Failed to append %q to RootCAs: %v", certs, err)}if ok := rootCAs.AppendCertsFromPEM(certs); !ok {log.Println("No certs appended, using system certs only")}cfg := elasticsearch...