Skip to content

crypto/x509: SystemCertPool() can return nil,nil #21405

Description

@champtar

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions