mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
@@ -118,17 +118,9 @@ An example of how to generate a self-signed certificate and private key that's v
|
|||||||
$ openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
|
$ openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
|
||||||
```
|
```
|
||||||
|
|
||||||
Base64-encode the cert.pem and key.pem files:
|
The generated `key.pem` and `cert.pem` files are then used for certificate and private_key.
|
||||||
(-w0 switch is not needed on Mac, only for Linux)
|
|
||||||
|
|
||||||
```sh
|
The key you provide should look like:
|
||||||
$ base64 -w0 key.pem > key.pem.base64
|
|
||||||
$ base64 -w0 cert.pem > cert.pem.base64
|
|
||||||
```
|
|
||||||
|
|
||||||
The base64-encoded values (`key.pem.base64, cert.pem.base64` files) are then used for certificate and private_key.
|
|
||||||
|
|
||||||
The keys you provide should look like:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
-----BEGIN PRIVATE KEY-----
|
-----BEGIN PRIVATE KEY-----
|
||||||
|
|||||||
Reference in New Issue
Block a user