Reimplemented change in httpgetter for insecure TLS option

Signed-off-by: Andrew Block <andy.block@gmail.com>
pull/11711/head
Andrew Block 2 years ago
parent ec5e29e801
commit c94306f75d
No known key found for this signature in database
GPG Key ID: 02DFE631AEF35EBC

@ -123,7 +123,7 @@ func (g *HTTPGetter) httpClient() (*http.Client, error) {
}
})
if (g.opts.certFile != "" && g.opts.keyFile != "") || g.opts.caFile != "" {
if (g.opts.certFile != "" && g.opts.keyFile != "") || g.opts.caFile != "" || g.opts.insecureSkipVerifyTLS {
tlsConf, err := tlsutil.NewClientTLS(g.opts.certFile, g.opts.keyFile, g.opts.caFile, g.opts.insecureSkipVerifyTLS)
if err != nil {
return nil, errors.Wrap(err, "can't create TLS config for client")

Loading…
Cancel
Save