-
Notifications
You must be signed in to change notification settings - Fork 49
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
grafana-cli: failed to verify certificate: x509: certificate signed by unknown authority #434
Comments
Linking related issue #405 |
@njobypet could you please assign to an engineer? Thank you. |
Can you please describe your system configuration? Are you building on macOS or Ubuntu? Which version? Docker container? Which image? VirtualBox? Thanks. |
I am building on macos by following this webpage, https://rocm.docs.amd.com/projects/omniperf/en/latest/install/grafana-setup.html using docker. some minor changes in the dockfile to use arm distribution instead of the original ubuntum distribution. with this change, I am able to pass most, except the grafana-cli update the apis with tls certification failure. |
It's not a solution but just a workaround, but you can add --no-check-certificate key to wget and --insecure to curl to pass the build. We are still working the issue. It seems docker container cannot find SSL certificates, when running on macos. Even I implicitly dump a certificate from a web-site to a file and then specify it as a parameter. Will update you as soon as we find a proper solution. |
yes, I add -k to curl and wget, and both work fine. but it is difficult for me to figure out how to workaround the grafana-cli command. I tried to download these apps directly, and using ADD in the dockerfile, but it still failed. maybe I did wrong, will try it again. |
Hi, can you attach output of "openssl s_client -connect dl.grafana.com:443 -showcerts" form your macos. |
In my case it was endpoint security service that was not letting openssl to get proper certificate chain from server. It was replacing the proper certificate with some default company certificate during handshake. Disabling the service helped. |
I wasn't sure whether it is allowed to post this information publically on github, though |
OK, can you make sure there are no security services running on macOS and try again. |
I made changes to the Dockfile to use 'ADD' the pre-download plugin, and disable the wget, and curl ssl security check, and it works, 19 ADD plugins/omniperf_plugin /var/lib/grafana/plugins/omniperf_plugin and 29 RUN apt-get update && these pre-download plugins have to be at the grafana/plugin directory. |
I don't think we can re-distribute Grafana plugins. You solution works, but disabling network proxy services on macOS system should work too. I cannot reproduce the problem when network proxy services are disabled. |
no worries about it, at least it is working for us now, thanks |
Can we close the issue then? Thanks. |
yes, please |
I am trying to build the grafana UI locally on my macOS/ubuntu machine, I have always failed with the following message,
I have generated the certificate using openssl, and setup the ini file like,
492;tls_skip_verify_insecure = true
493 ;tls_client_cert =/Work/omniperf/grafana/client.pem
494 ;tls_client_key = /Work/omniperf/grafana/client.key
495 ;tls_client_ca = /Work/omniperf/grafana/ca.pem
after looking into the Dockfile, this error is from,
_48 /usr/sbin/grafana-cli plugins install michaeldmoore-multistat-panel && _
anyone can help to resolve this issue, or help to generate these certificate/key files?
The text was updated successfully, but these errors were encountered: