// +build windows
// +build !confonly

package tls

import "crypto/x509"

func (c *Config) getCertPool() (*x509.CertPool, error) {
	if c.DisableSystemRoot {
		return c.loadSelfCertPool()
	}

	return nil, nil
}

// +build windows
// +build !confonly

package tls

import "crypto/x509"

func (c *Config) getCertPool() (*x509.CertPool, error) {
	return c.loadSelfCertPool()
}

Fix self-signed certificates on Windows
Fix self-signed certificates on Windows