crypto/x509: not finding CA from SystemCertPool #45904
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
cat main.go
The simple http get to download a JSON through https protocol failed.
If tracing it down into the x509 package, will find that it does not find the right CA in SystemCertPool. But the CA is valid in Safari and it is valid in MacOS KeyChain's SystemRoots (in attached screen shot)
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
run the main.go above
What did you expect to see?
It should download the json file correctly.
What did you see instead?
It failed to download due to error in verifying the SSL certificate.
The text was updated successfully, but these errors were encountered: