Closed
Description
I believe that Go 1.8's implementation of SystemCertPool on Windows can give some surprising results.
The reason is that Windows doesn't ship with all of its root certificates installed. Instead, it downloads them on-demand.
(See the original implementation of systemVerify on Windows:a324a5a)
This means that there's a difference between what crypto/x509 will verify as OK on Windows with a default VerifyOptions (which uses the systemVerify() function - and will automatically fetch missing root CAs), and attempting to use the SystemCertPool() as the root store in VerifyOptions yourself.
I'm not sure what to do here. Maybe a note in the SystemCertPool docs about the Windows situation is sufficient?