Place your cert files (cert and key) in the InfluxDB configuration directory (/etc/influxdb/
)
Point the latter files by defining them in the InfluxDB config
https-enabled = true
https-certificate = "/etc/influxdb/example.crt"
https-private-key = "/etc/influxdb/example.key"
Change the files ownership
chown influxdb:influxdb /etc/influxdb/example.*
Note: When connecting with the Influx client, and using a self-signed cert on the server, additional flags are required
influx -ssl -unsafeSsl