-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crypto/x509: error "x509: certificate signed by unknown authority" on valid SSL chain #16589
Comments
/cc @agl |
I believe this is a dup of #16532. |
This isn't a dup of #16532, I think, because that issue is for the non-cgo code path, and go env indicates that cgo is enabled here. |
@rasky, I have noticed you are using OS darwin. Do you get the same error with, say, this site? I have not been able to reproduce this using $ docker pull golang:1.7rc4
$ docker run -ti --rm d7e6aaff64ae
go version
# go version go1.7rc4 linux/amd64
# [… paste the above script as 16589.go]
go run 16589.go
CGO_ENABLED="1" go run 16589.go
# both don't panic |
@wmark yes, this bug is OSX-only, and it doesn't reproduce with the URL you linked. |
@rasky unfortunately have the same on windows x86. I built my app on win64 with
Any solution available yet? |
Best I can tell, this is caused by "COMODO ECC Certification Authority" not being included in some OS X versions. With 10.10, it's not included. That site can be loaded by Safari because the intermediate has an AIA pointer to a cross-sign from the AddTrust ECC root, which /is/ included. But the site isn't serving that cross-sign for Go. With 10.12, the root is included and the test loads. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.7rc4 darwin/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
Some HTML output
What did you see instead?
Notice that visiting the same link with Safari produces no SSL error. The SSL certificate chain seems correct and the Comodo ECC CA is in OS X trust store.
The text was updated successfully, but these errors were encountered: