Open rraghav13 opened 5 years ago
@raghav130593 Does this reproduce if you trust the self-signed cert on all your systems?
Hey @raghav130593, it looks like we have a stray invocation of getAdminClient
that takes a default http.Client
instead of the one you found and modified above.
If you make the same changes in https://github.com/mattermost/mattermost-load-test/blob/master/loadtest/setup_server.go#L57-L60, you should be able to bypass the certificate checks.
This is probably something we should expose in the configuration to make explicit and easy.
@icelander I should have clarified. It is not self-signed but signed by our internal CA. My bad. So, basically, if I point requests to my CA trust chain, that should do the deal.
@lieut-data Thanks. That should work.
Hi @raghav130593 - just wanted to quickly check if you were able to get it to work ? Please let us know. Thanks.
Loadtest tool fails when trying to ping my mattermost instance under TLS by self signed cert. This is the error
{"level":"error","ts":1548197159.254348,"caller":"loadtest/client.go:82","msg":"Did you follow the setup guide and modify loadtestconfig.json?","error":"https://<siteurl>/api/v4/system/ping: model.client.connecting.app_error, Get https://<siteurl>/api/v4/system/ping: x509: certificate signed by unknown authority"} Error: run test failed: Unable create admin client.
I tracked down the file that sets properties for http.client and made the modification in the Transport object to skip TLS verification for testing purposes but the error persists. Below is the transport object inrun.go
Can you advise as to how to resolve this issue?