I'm a little bit confused about https communication with influxdb. I am running a 1.8 Influxdb instance on a virtual machine with a public IP. It is an Apache2 server but for now I am not willing to use it as a webserver to display web pages to clients. I want to use it as a database server for influxdb.
I obtained a valid certificate from Let's Encrypt, indeed the welcome page https://datavm.bo.cnr.it works properly over encrypted connection.
Then I followed all the instructions in the docs in order to enable https: I put the fullchain.pem
file in /etc/ssl
directory, I set the file permissions (not sure about the meaning of this step though), I edited influxdb.conf with https-enabled = true
and set the path for https-certificate
and https-private.key
(fullchain.pem
for both, is it right?). Then, systemctl restart influxdb
. When I run influxdb -ssl -host datavm.bo.cnr.it
I get the following:
Failed to connect to https://datavm.bo.cnr.it:8086: Get https://datavm.bo.cnr.it:8086/ping: http: server gave HTTP response to HTTPS client
Please check your connection settings and ensure 'influxd' is running.
Any help in understanding what I am doing wrong is very appreciated! Thank you