httpclient: add a configuration parameter to skip TLS certificate validation

In this mode, TLS is susceptible to man-in-the-middle attacks.
This should be used only for testing.
This commit is contained in:
Nicola Murino
2020-05-03 11:37:50 +02:00
parent 510a95bd6d
commit f369fdf6f2
5 changed files with 12 additions and 3 deletions

View File

@@ -103,6 +103,7 @@ func init() {
HTTPConfig: httpclient.Config{
Timeout: 20,
CACertificates: nil,
SkipTLSVerify: false,
},
}