From 46cf1e6e8c6e9763a336dc08f725c5be21b36566 Mon Sep 17 00:00:00 2001 From: qsyqian Date: Thu, 5 Sep 2024 15:13:21 +0800 Subject: [PATCH] benchmark: support insecure-skip-tls-verify Signed-off-by: qsyqian --- tools/benchmark/cmd/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/benchmark/cmd/root.go b/tools/benchmark/cmd/root.go index d4481acf871..c85beb9dbc6 100644 --- a/tools/benchmark/cmd/root.go +++ b/tools/benchmark/cmd/root.go @@ -67,6 +67,7 @@ func init() { RootCmd.PersistentFlags().StringVar(&tls.CertFile, "cert", "", "identify HTTPS client using this SSL certificate file") RootCmd.PersistentFlags().StringVar(&tls.KeyFile, "key", "", "identify HTTPS client using this SSL key file") RootCmd.PersistentFlags().StringVar(&tls.TrustedCAFile, "cacert", "", "verify certificates of HTTPS-enabled servers using this CA bundle") + RootCmd.PersistentFlags().BoolVar(&tls.InsecureSkipVerify, "insecure-skip-tls-verify", false, "skip server certificate verification") RootCmd.PersistentFlags().StringVar(&user, "user", "", "provide username[:password] and prompt if password is not supplied.") RootCmd.PersistentFlags().DurationVar(&dialTimeout, "dial-timeout", 0, "dial timeout for client connections")