Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type HostConfig struct {

type TransportConfig struct {
SslVerify bool
certPool *x509.CertPool
CertPool *x509.CertPool
HttpRequestTimeout time.Duration // in seconds
HttpPoolConnections int
ProxyUrl *url.URL
Expand All @@ -58,7 +58,7 @@ func NewTransportConfig(sslVerify string, httpRequestTimeout int, httpPoolConnec
err = fmt.Errorf("cannot append certificate from file '%s'", sslVerify)
return
}
cfg.certPool = caPool
cfg.CertPool = caPool
cfg.SslVerify = true
}

Expand Down Expand Up @@ -155,7 +155,7 @@ func (whr *WapiHttpRequestor) Init(authCfg AuthConfig, trCfg TransportConfig) {

tr := &http.Transport{
TLSClientConfig: &tls.Config{
RootCAs: trCfg.certPool,
RootCAs: trCfg.CertPool,
ClientAuth: clientAuthType,
Certificates: certList,
InsecureSkipVerify: !trCfg.SslVerify,
Expand Down