diff --git a/transport/internet/tls/config_windows.go b/transport/internet/tls/config_windows.go index 2396bcd0..f02f6d26 100644 --- a/transport/internet/tls/config_windows.go +++ b/transport/internet/tls/config_windows.go @@ -6,5 +6,9 @@ package tls import "crypto/x509" func (c *Config) getCertPool() (*x509.CertPool, error) { - return c.loadSelfCertPool() + if c.DisableSystemRoot { + return c.loadSelfCertPool() + } + + return nil, nil }