-
Notifications
You must be signed in to change notification settings - Fork 18k
crypto/x509: SystemCertPool() can return nil,nil #21405
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
Comments
|
@shreyas1996 Using SystemCertPool under Windows is issue #16736, see the issue description in #18609 for the basic problem with it unter windows. This issue is about a (nil, nil) return value under Unix (and Plan 9) |
oh okay.. i will check that too |
Change https://golang.org/cl/103596 mentions this issue: |
What version of Go are you using (
go version
)?1.8
What operating system and processor architecture are you using (
go env
)?debian9 lxc (no certificates on the system) / amd64
What did you do?
https://play.golang.org/p/9uFYp2M6PT
What did you expect to see?
I expected to have either an error or an empty certPool
What did you see instead?
both CertPool and error are nil when there is no certificates found on the system
If you think this is the correct behavior maybe add a small warning in the documentation
Regards
Etienne
The text was updated successfully, but these errors were encountered: