Docs: Provide absolute paths for set-up-https.md (#70681)

Fixes #69664
This commit is contained in:
Emil Tullstedt
2023-07-04 16:08:37 +02:00
committed by GitHub
parent 211bff1fd0
commit f2bb9fd92a

View File

@@ -80,7 +80,7 @@ This section shows you how to use `openssl` tooling to generate all necessary fi
1. Run the following command to self-sign the certificate with the private key, for a period of validity of 365 days:
```bash
sudo openssl x509 -req -days 365 -in grafana.csr -signkey /etc/grafana/grafana.key -out /etc/grafana/grafana.crt
sudo openssl x509 -req -days 365 -in /etc/grafana/grafana.csr -signkey /etc/grafana/grafana.key -out /etc/grafana/grafana.crt
```
1. Run the following commands to set the appropriate permissions for the files:
@@ -88,7 +88,7 @@ This section shows you how to use `openssl` tooling to generate all necessary fi
```bash
sudo chown grafana:grafana /etc/grafana/grafana.crt
sudo chown grafana:grafana /etc/grafana/grafana.key
sudo chmod 400 grafana.key /etc/grafana/grafana.crt
sudo chmod 400 /etc/grafana/grafana.key /etc/grafana/grafana.crt
```
**Note**: When using these files, browsers might provide warnings for the resulting website because a third-party source does not trust the certificate. Browsers will show trust warnings; however, the connection will remain encrypted.