I just installed influxdb 2.1.6 on docker 20.10.5 on Debian 11 on x64.
https is enabled and works for the web interface.
But when I try to use any CLI command - from the docker shell or influxdb-cli on another host - I always get the mentioned certificate error. Example:
$ docker exec -ti influxdb influx org list
Error: failed to list orgs: Get "https:// ... :8086/api/v2/orgs?org=home": x509: certificate signed by unknown authority
The certificate is a wildcard certificate for my domain issued by ZeroSSL and valid until may.
How can I get influxdb-cli working?
PS: the url in the example error message works when I use it with a web browser and returns the requested org list.