Skip to content
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

[Windows] "crypto/x509: system root pool is not available on Windows" #108

Closed
placaze opened this issue Nov 14, 2021 · 2 comments · Fixed by #132
Closed

[Windows] "crypto/x509: system root pool is not available on Windows" #108

placaze opened this issue Nov 14, 2021 · 2 comments · Fixed by #132

Comments

@placaze
Copy link

placaze commented Nov 14, 2021

With Windows, we see the warning error reading system cert pool: crypto/x509: system root pool is not available on Windows everytime kafkactl reaches the brokers.

Example:

MINGW64 ~/Downloads
$ ./kafkactl.exe get topics --config-file kafkactl-dev.yaml
error reading system cert pool: crypto/x509: system root pool is not available on Windows
error reading system cert pool: crypto/x509: system root pool is not available on Windows
TOPIC                                                           PARTITIONS
[...]

I saw a workaround here: golang/go#16736 (comment). I don't know if it can help.

@d-rk
Copy link
Collaborator

d-rk commented Nov 15, 2021

Hey @placaze
Thank you for reporting. The solution is probably just to avoid fetching systemCerts for Windows somewhere here:
https://github.com/deviceinsight/kafkactl/blob/master/internal/common-operation.go#L217

@d-rk
Copy link
Collaborator

d-rk commented Jan 17, 2022

@placaze this will be fixed with golang/go@3544082 and will probably be available with go 1.18.
So we will just wait for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants