Hi, I’m tying to install my SSL certificate in my influxb v2.7.5 but I can’t, if i follow the official guide I do the command:
influxd \
--tls-cert="/etc/certificati/completo.crt" \
--tls-key="/etc/certificati/chiave.key"
and after it works but if i go to https://localhost:8086/ it’s like I have to reconfigure my instance with new tokens and buckets, and when i exit to the CLI influxdb get restart in HTTP (and my buckets/token return).
how can i improve my SSL certificate in my config.toml? I have tried many times to install it without success, my config only has these two lines:
bolt-path = “/var/lib/influxdb/influxd.bolt”
engine-path = “/var/lib/influxdb/engine”
I also tried to put [http] but the service doesn’t start while if I put [https] it starts but:
1- I access in HTTP and in HTTPS it gives me this error: “ERR_SSL_PROTOCOL_ERROR”
2- from the influx logs I can see that it requires a token(?): “influxd-systemd-start.sh[9460]: ts=2024-04-18T08:16:40.077928Z lvl=info msg=Listening log_id=0od4JKmW000 service=tcp-listener transport=http addr=:8086 port=8086”
like this:
[https]
enabled = true
auth-enabled = false
bind-address = “:8086”
cert = “/etc/influxdb/certificati/completo.crt”
key = “/etc/influxdb/certificati/chiave.key”