Use multi-line bash command examples in TLS doc

pull/533/head
pierwill 2019-10-18 14:26:59 -07:00
parent 4620162f77
commit 39032fae21
1 changed files with 10 additions and 3 deletions

View File

@ -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 <NUMBER_OF_DAYS>
sudo openssl req -x509 -nodes -newkey rsa:2048 \
-keyout /etc/ssl/influxdb-selfsigned.key \
-out /etc/ssl/influxdb-selfsigned.crt \
-days <NUMBER_OF_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