diff --git a/cmd/cassowary/cli.go b/cmd/cassowary/cli.go index a6c3f43..9bf1b44 100644 --- a/cmd/cassowary/cli.go +++ b/cmd/cassowary/cli.go @@ -175,6 +175,10 @@ func validateCLI(c *cli.Context) error { } tlsConfig := new(tls.Config) + if c.Bool("insecure") { + tlsConfig.InsecureSkipVerify = true + } + if c.String("ca") != "" { pemCerts, err := ioutil.ReadFile(c.String("ca")) if err != nil { @@ -329,6 +333,10 @@ func runCLI(args []string) { Name: "disable-keep-alive", Usage: "use this flag to disable http keep-alive", }, + &cli.BoolFlag{ + Name: "insecure", + Usage: "use this flag to skip ssl verification", + }, &cli.StringFlag{ Name: "ca", Usage: "ca certificate to verify peer against",