diff --git a/content/v2.0/security/https_setup.md b/content/v2.0/security/https_setup.md index ae237021a..8295622df 100644 --- a/content/v2.0/security/https_setup.md +++ b/content/v2.0/security/https_setup.md @@ -73,7 +73,9 @@ and [using a self-signed certificate](#set-up-https-with-a-self-signed-certifica Start InfluxDB with TLS command line flags: ```bash - influxd --tls-cert "/etc/ssl/influxdb-selfsigned.crt" --tls-key "/etc/ssl/influxdb-selfsigned.key" + influxd \ + --tls-cert "/etc/ssl/influxdb-selfsigned.crt"\ + --tls-key "/etc/ssl/influxdb-selfsigned.key" ``` 4. **Verify the HTTPS setup** @@ -103,7 +105,10 @@ That's it! You've successfully set up HTTPS with InfluxDB. It outputs those files to `/etc/ssl/` and gives them the required permissions. ```bash - sudo openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/ssl/influxdb-selfsigned.key -out /etc/ssl/influxdb-selfsigned.crt -days + sudo openssl req -x509 -nodes -newkey rsa:2048 \ + -keyout /etc/ssl/influxdb-selfsigned.key \ + -out /etc/ssl/influxdb-selfsigned.crt \ + -days ``` When you execute the command, it will prompt you for more information. @@ -114,7 +119,9 @@ That's it! You've successfully set up HTTPS with InfluxDB. Start InfluxDB with TLS command line flags: ```bash - influxd --tls-cert "/etc/ssl/influxdb-selfsigned.crt" --tls-key "/etc/ssl/influxdb-selfsigned.key" + influxd \ + --tls-cert "/etc/ssl/influxdb-selfsigned.crt" \ + --tls-key "/etc/ssl/influxdb-selfsigned.key" ``` 3. Verify the HTTPS setup