From d002861f5f7394855037877eeba5bdc63fb6c4e2 Mon Sep 17 00:00:00 2001 From: ledgerwatch Date: Wed, 26 Apr 2023 15:57:39 +0100 Subject: [PATCH] [Diagnostics] fix erigon support connection to diagnostics system (#7391) --- turbo/app/support.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/turbo/app/support.go b/turbo/app/support.go index ef0faa613..b4d2bbf86 100644 --- a/turbo/app/support.go +++ b/turbo/app/support.go @@ -5,7 +5,6 @@ import ( "bytes" "context" "crypto/tls" - "crypto/x509" "encoding/binary" "fmt" "io" @@ -65,14 +64,9 @@ func connectDiagnostics(cliCtx *cli.Context) error { diagnosticsUrl := cliCtx.String(diagnosticsURLFlag.Name) - // Create a pool with the server certificate since it is not signed - // by a known CA - certPool := x509.NewCertPool() - // Create TLS configuration with the certificate of the server insecure := cliCtx.Bool(insecureFlag.Name) tlsConfig := &tls.Config{ - RootCAs: certPool, InsecureSkipVerify: insecure, //nolint:gosec }